aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-18 14:07:28 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-18 14:07:28 +0000
commit07265b81b379751405857886f9ffa1da371a509f (patch)
tree324d55fd6fd01fafd40b04a2f622667129999a8a
parent9390983b083413fff389d6ab956c82b175d4885e (diff)
Test more than just label names and make test work on non-x86 hosts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122153 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/vec-sign.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CodeGen/X86/vec-sign.ll b/test/CodeGen/X86/vec-sign.ll
index 0d7e9e5e45..be5a2399d2 100644
--- a/test/CodeGen/X86/vec-sign.ll
+++ b/test/CodeGen/X86/vec-sign.ll
@@ -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 @@ entry:
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>