[llvm-commits] CVS: llvm/test/Transforms/InstCombine/apint-add1.ll apint-add2.ll

Reid Spencer reid at x10sys.com
Tue Mar 27 18:35:45 PDT 2007



Changes in directory llvm/test/Transforms/InstCombine:

apint-add1.ll updated: 1.1 -> 1.2
apint-add2.ll updated: 1.1 -> 1.2
---
Log message:

For PR1280: http://llvm.org/PR1280 :
Remove test cases for and/xor/add -> trunc/sext that use bit widths that
the targets cannot code gen.


---
Diffs of the changes:  (+0 -24)

 apint-add1.ll |   16 ----------------
 apint-add2.ll |    8 --------
 2 files changed, 24 deletions(-)


Index: llvm/test/Transforms/InstCombine/apint-add1.ll
diff -u llvm/test/Transforms/InstCombine/apint-add1.ll:1.1 llvm/test/Transforms/InstCombine/apint-add1.ll:1.2
--- llvm/test/Transforms/InstCombine/apint-add1.ll:1.1	Fri Mar 23 15:48:33 2007
+++ llvm/test/Transforms/InstCombine/apint-add1.ll	Tue Mar 27 20:35:28 2007
@@ -28,22 +28,6 @@
         ret i15 %tmp.4
 }
 
-define i12 @test4(i12 %x) {
-        ;; If we have ADD(XOR(AND(X, 0xFF), 0xF..F80), 0x80), it's a sext.
-        %X = and i12 %x, 63
-        %tmp.2 = xor i12 %X, 4064    ; 0xFE0
-        %tmp.4 = add i12 %tmp.2, 32  ; 0x020
-        ret i12 %tmp.4
-}
-
-define i49 @test5(i49 %x) {
-        ;; If we have ADD(XOR(AND(X, 0xFF), 0x80), 0xF..F80), it's a sext.
-        %X = and i49 %x, 16777215                     ; 0x0000000ffffff
-        %tmp.2 = xor i49 %X, 8388608                  ; 0x0000000800000
-        %tmp.4 = add i49 %tmp.2, -8388608             ; 0x1FFFFFF800000
-        ret i49 %tmp.4
-}
-
 define i49 @test6(i49 %x) {
         ;; (x & 254)+1 -> (x & 254)|1
         %tmp.2 = and i49 %x, 562949953421310


Index: llvm/test/Transforms/InstCombine/apint-add2.ll
diff -u llvm/test/Transforms/InstCombine/apint-add2.ll:1.1 llvm/test/Transforms/InstCombine/apint-add2.ll:1.2
--- llvm/test/Transforms/InstCombine/apint-add2.ll:1.1	Fri Mar 23 15:48:33 2007
+++ llvm/test/Transforms/InstCombine/apint-add2.ll	Tue Mar 27 20:35:28 2007
@@ -40,14 +40,6 @@
         ret i128 %tmp.4
 }
 
-define i99 @test5(i99 %x) {
-        ;; If we have ADD(XOR(AND(X, 0xFF), 0x80), 0xF..F80), it's a sext.
-        %X = and i99 %x, 562949953421311
-        %tmp.2 = xor i99 %X, 281474976710656 
-        %tmp.4 = add i99 %tmp.2, -281474976710656
-        ret i99 %tmp.4
-}
-
 define i77 @test6(i77 %x) {
         ;; (x & 254)+1 -> (x & 254)|1
         %tmp.2 = and i77 %x, 562949953421310






More information about the llvm-commits mailing list