Add a priority queue class, which is a wrapper around std::priority_queue
[oota-llvm.git] / test / Transforms / InstCombine / apint-add1.ll
index 2473ec1403f598faac647b58d8541bd812a43399..74280ee7f7cad1a132b92c9a2a301ce6d7d0f054 100644 (file)
@@ -1,11 +1,9 @@
 ; This test makes sure that add instructions are properly eliminated.
 ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
 
-; RUN: llvm-as < %s | opt -instcombine -disable-output &&
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
 ; RUN:    grep -v OK | not grep add
 
-implementation
 
 define i1 @test1(i1 %x) {
         %tmp.2 = xor i1 %x, 1
@@ -28,22 +26,6 @@ define i15 @test3(i15 %x) {
         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