[llvm-commits] [llvm] r49281 - /llvm/trunk/test/CodeGen/X86/xor_not.ll

Chris Lattner sabre at nondot.org
Sun Apr 6 14:39:17 PDT 2008


Author: lattner
Date: Sun Apr  6 16:39:17 2008
New Revision: 49281

URL: http://llvm.org/viewvc/llvm-project?rev=49281&view=rev
Log:
fix this testcase to pass and remove a duplicate instance of itself.

Modified:
    llvm/trunk/test/CodeGen/X86/xor_not.ll

Modified: llvm/trunk/test/CodeGen/X86/xor_not.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/xor_not.ll?rev=49281&r1=49280&r2=49281&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/xor_not.ll (original)
+++ llvm/trunk/test/CodeGen/X86/xor_not.ll Sun Apr  6 16:39:17 2008
@@ -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 @@
 	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 @@
 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
-}





More information about the llvm-commits mailing list