From cbbf747b7ba22acf3a930133f1b55abf04f1992d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 7 Jul 2009 22:51:09 +0000 Subject: add a trivial test that vector compares work. llvm-svn: 74963 --- llvm/test/CodeGen/X86/vec_compare.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 llvm/test/CodeGen/X86/vec_compare.ll (limited to 'llvm/test') 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 +} + -- cgit v1.2.3