Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: test/NaCl/PNaClABI/instructions.ll

Issue 270723003: PNaCl SIMD: allow the bitcode reader to read select instructions properly (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/NaCl/Bitcode/vector.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/PNaClABI/instructions.ll
diff --git a/test/NaCl/PNaClABI/instructions.ll b/test/NaCl/PNaClABI/instructions.ll
index 55e3566c6259a209a3739b113b1c116e65fe38d3..4105e8e44eb61d5724571c9c18cd9db145b4de26 100644
--- a/test/NaCl/PNaClABI/instructions.ll
+++ b/test/NaCl/PNaClABI/instructions.ll
@@ -268,13 +268,23 @@ foo:
%vphi8 = phi <16 x i8> [undef, %entry], [undef, %foo]
%vphi16 = phi <8 x i16> [undef, %entry], [undef, %foo]
%vphi32 = phi <4 x i32> [undef, %entry], [undef, %foo]
+
%select = select i1 true, i8 undef, i8 undef
+
%vselect4x1 = select i1 true, <4 x i1> undef, <4 x i1> undef
%vselect8x1 = select i1 true, <8 x i1> undef, <8 x i1> undef
%vselect16x1 = select i1 true, <16 x i1> undef, <16 x i1> undef
%vselect8 = select i1 true, <16 x i8> undef, <16 x i8> undef
%vselect16 = select i1 true, <8 x i16> undef, <8 x i16> undef
%vselect32 = select i1 true, <4 x i32> undef, <4 x i32> undef
+
+ %vvselect4x1 = select <4 x i1> undef, <4 x i1> undef, <4 x i1> undef
+ %vvselect8x1 = select <8 x i1> undef, <8 x i1> undef, <8 x i1> undef
+ %vvselect16x1 = select <16 x i1> undef, <16 x i1> undef, <16 x i1> undef
+ %vvselect8 = select <16 x i1> undef, <16 x i8> undef, <16 x i8> undef
+ %vvselect16 = select <8 x i1> undef, <8 x i16> undef, <8 x i16> undef
+ %vvselect32 = select <4 x i1> undef, <4 x i32> undef, <4 x i32> undef
+
call void @conversion()
br i1 undef, label %foo, label %bar
bar:
« no previous file with comments | « test/NaCl/Bitcode/vector.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698