[llvm-commits] [llvm] r74963 - /llvm/trunk/test/CodeGen/X86/vec_compare.ll
Chris Lattner
sabre at nondot.org
Tue Jul 7 15:51:09 PDT 2009
Author: lattner
Date: Tue Jul 7 17:51:09 2009
New Revision: 74963
URL: http://llvm.org/viewvc/llvm-project?rev=74963&view=rev
Log:
add a trivial test that vector compares work.
Added:
llvm/trunk/test/CodeGen/X86/vec_compare.ll
Added: llvm/trunk/test/CodeGen/X86/vec_compare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_compare.ll?rev=74963&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_compare.ll (added)
+++ llvm/trunk/test/CodeGen/X86/vec_compare.ll Tue Jul 7 17:51:09 2009
@@ -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
+}
+
More information about the llvm-commits
mailing list