summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-06 21:39:17 +0000
committerChris Lattner <sabre@nondot.org>2008-04-06 21:39:17 +0000
commit5bd2f736e620e471ee94cdb3505732ffabf220b3 (patch)
tree90b66f740db93c0ae45b5eb28d54e80f9afcfe6b
parent613d7afe6486dd0b4cc341708a3090229c5ef0f2 (diff)
downloadbcm5719-llvm-5bd2f736e620e471ee94cdb3505732ffabf220b3.tar.gz
bcm5719-llvm-5bd2f736e620e471ee94cdb3505732ffabf220b3.zip
fix this testcase to pass and remove a duplicate instance of itself.
llvm-svn: 49281
-rw-r--r--llvm/test/CodeGen/X86/xor_not.ll78
1 files changed, 3 insertions, 75 deletions
diff --git a/llvm/test/CodeGen/X86/xor_not.ll b/llvm/test/CodeGen/X86/xor_not.ll
index 52f8e653ccc..de740cfb837 100644
--- a/llvm/test/CodeGen/X86/xor_not.ll
+++ b/llvm/test/CodeGen/X86/xor_not.ll
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep not[lwb] | count 3
-; RUN: llvm-as < %s | llc -march=x86-64 | grep not[lwb] | count 4
+; RUN: llvm-as < %s | llc -march=x86 | grep {not} | count 3
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {not} | count 4
define i32 @test(i32 %a, i32 %b) nounwind {
entry:
%tmp1not = xor i32 %b, -2
@@ -56,7 +56,7 @@ bb12:
ret i8 %tmp3
}
-define i32 @notransform(i32 %a, i32 %b) nounwind {
+define i32 @test2(i32 %a, i32 %b) nounwind {
entry:
br label %bb
bb:
@@ -71,76 +71,4 @@ bb:
bb12:
ret i32 %tmp3
}
-; RUN: llvm-as < %s | llc -march=x86 | grep not[lwb] | count 3
-; RUN: llvm-as < %s | llc -march=x86-64 | grep not[lwb] | count 4
-define i32 @test(i32 %a, i32 %b) nounwind {
-entry:
- %tmp1not = xor i32 %b, -2
- %tmp3 = and i32 %tmp1not, %a
- %tmp4 = lshr i32 %tmp3, 1
- ret i32 %tmp4
-}
-define i32 @sum32(i32 %a, i32 %b) nounwind {
-entry:
- br label %bb
-bb:
- %b_addr.0 = phi i32 [ %b, %entry ], [ %tmp8, %bb ]
- %a_addr.0 = phi i32 [ %a, %entry ], [ %tmp3, %bb ]
- %tmp3 = xor i32 %a_addr.0, %b_addr.0
- %tmp4not = xor i32 %tmp3, 2147483647
- %tmp6 = and i32 %tmp4not, %b_addr.0
- %tmp8 = shl i32 %tmp6, 1
- %tmp10 = icmp eq i32 %tmp8, 0
- br i1 %tmp10, label %bb12, label %bb
-bb12:
- ret i32 %tmp3
-}
-
-define i16 @sum16(i16 %a, i16 %b) nounwind {
-entry:
- br label %bb
-bb:
- %b_addr.0 = phi i16 [ %b, %entry ], [ %tmp8, %bb ]
- %a_addr.0 = phi i16 [ %a, %entry ], [ %tmp3, %bb ]
- %tmp3 = xor i16 %a_addr.0, %b_addr.0
- %tmp4not = xor i16 %tmp3, 32767
- %tmp6 = and i16 %tmp4not, %b_addr.0
- %tmp8 = shl i16 %tmp6, 1
- %tmp10 = icmp eq i16 %tmp8, 0
- br i1 %tmp10, label %bb12, label %bb
-bb12:
- ret i16 %tmp3
-}
-
-define i8 @sum8(i8 %a, i8 %b) nounwind {
-entry:
- br label %bb
-bb:
- %b_addr.0 = phi i8 [ %b, %entry ], [ %tmp8, %bb ]
- %a_addr.0 = phi i8 [ %a, %entry ], [ %tmp3, %bb ]
- %tmp3 = xor i8 %a_addr.0, %b_addr.0
- %tmp4not = xor i8 %tmp3, 127
- %tmp6 = and i8 %tmp4not, %b_addr.0
- %tmp8 = shl i8 %tmp6, 1
- %tmp10 = icmp eq i8 %tmp8, 0
- br i1 %tmp10, label %bb12, label %bb
-bb12:
- ret i8 %tmp3
-}
-
-define i32 @notransform(i32 %a, i32 %b) nounwind {
-entry:
- br label %bb
-bb:
- %b_addr.0 = phi i32 [ %b, %entry ], [ %tmp8, %bb ]
- %a_addr.0 = phi i32 [ %a, %entry ], [ %tmp3, %bb ]
- %tmp3 = xor i32 %a_addr.0, %b_addr.0
- %tmp4not = xor i32 %tmp3, 2147483646
- %tmp6 = and i32 %tmp4not, %b_addr.0
- %tmp8 = shl i32 %tmp6, 1
- %tmp10 = icmp eq i32 %tmp8, 0
- br i1 %tmp10, label %bb12, label %bb
-bb12:
- ret i32 %tmp3
-}
OpenPOWER on IntegriCloud