[llvm-commits] [llvm] r122153 - /llvm/trunk/test/CodeGen/X86/vec-sign.ll
Benjamin Kramer
benny.kra at googlemail.com
Sat Dec 18 06:07:28 PST 2010
Author: d0k
Date: Sat Dec 18 08:07:28 2010
New Revision: 122153
URL: http://llvm.org/viewvc/llvm-project?rev=122153&view=rev
Log:
Test more than just label names and make test work on non-x86 hosts.
Modified:
llvm/trunk/test/CodeGen/X86/vec-sign.ll
Modified: llvm/trunk/test/CodeGen/X86/vec-sign.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec-sign.ll?rev=122153&r1=122152&r2=122153&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec-sign.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec-sign.ll Sat Dec 18 08:07:28 2010
@@ -1,9 +1,11 @@
-; RUN: llc < %s -mcpu=nehalem | FileCheck %s
+; RUN: llc < %s -march=x86 -mcpu=nehalem | FileCheck %s
define <4 x i32> @psignd(<4 x i32> %a, <4 x i32> %b) nounwind ssp {
entry:
+; CHECK: psignd:
; CHECK: psignd
; CHECK-NOT: sub
+; CHECK: ret
%b.lobit = ashr <4 x i32> %b, <i32 31, i32 31, i32 31, i32 31>
%sub = sub nsw <4 x i32> zeroinitializer, %a
%0 = xor <4 x i32> %b.lobit, <i32 -1, i32 -1, i32 -1, i32 -1>
@@ -15,7 +17,9 @@
define <4 x i32> @pblendvb(<4 x i32> %b, <4 x i32> %a, <4 x i32> %c) nounwind ssp {
entry:
+; CHECK: pblendvb:
; CHECK: pblendvb
+; CHECK: ret
%b.lobit = ashr <4 x i32> %b, <i32 31, i32 31, i32 31, i32 31>
%sub = sub nsw <4 x i32> zeroinitializer, %a
%0 = xor <4 x i32> %b.lobit, <i32 -1, i32 -1, i32 -1, i32 -1>
More information about the llvm-commits
mailing list