diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-07 22:51:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-07 22:51:09 +0000 |
commit | cb178c61e402c2d012b0b0f60336ff2209cd3ed1 (patch) | |
tree | e58d5464999aac691d2d7f4bc4026d84770eaba7 | |
parent | 0a6c2d8deab5124198e8cd5fbb3c43509be3e511 (diff) |
add a trivial test that vector compares work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74963 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/vec_compare.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_compare.ll b/test/CodeGen/X86/vec_compare.ll new file mode 100644 index 0000000000..87d530dc1b --- /dev/null +++ b/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 +} + |