summaryrefslogtreecommitdiff
path: root/test/Assembler/vector-select.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/vector-select.ll')
-rw-r--r--test/Assembler/vector-select.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Assembler/vector-select.ll b/test/Assembler/vector-select.ll
new file mode 100644
index 000000000000..87af602aaf59
--- /dev/null
+++ b/test/Assembler/vector-select.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep select
+; rudimentary test of select on vectors returning vector of bool
+
+define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b,
+ <4 x i1> %cond) nounwind {
+entry:
+ %cmp = select <4 x i1> %cond, <4 x i32> %a, <4 x i32> %b
+ ; <4 x i32> [#uses=1]
+ ret <4 x i32> %cmp
+}
+