summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-07 22:51:09 +0000
committerChris Lattner <sabre@nondot.org>2009-07-07 22:51:09 +0000
commitcbbf747b7ba22acf3a930133f1b55abf04f1992d (patch)
tree9ddaa6d75e6593d189590cece44fa36187726329
parentf48f3be185db1f0b1d39a4f6a60770aa76aaa54c (diff)
downloadbcm5719-llvm-cbbf747b7ba22acf3a930133f1b55abf04f1992d.tar.gz
bcm5719-llvm-cbbf747b7ba22acf3a930133f1b55abf04f1992d.zip
add a trivial test that vector compares work.
llvm-svn: 74963
-rw-r--r--llvm/test/CodeGen/X86/vec_compare.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/vec_compare.ll b/llvm/test/CodeGen/X86/vec_compare.ll
new file mode 100644
index 00000000000..87d530dc1be
--- /dev/null
+++ b/llvm/test/CodeGen/X86/vec_compare.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep pcmpgtd
+
+define <4 x i32> @test(<4 x i32> %A, <4 x i32> %B) nounwind {
+ %C = vicmp sgt <4 x i32> %A, %B
+ ret <4 x i32> %C
+}
+
OpenPOWER on IntegriCloud