tweaks
authorChris Lattner <sabre@nondot.org>
Sun, 12 Feb 2006 08:01:35 +0000 (08:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Feb 2006 08:01:35 +0000 (08:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26133 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/bit-tracking.ll
test/Transforms/InstCombine/or.ll

index aa81da92defa11d5fceafe6e6217bfe0f0bfb6b0..c7806ec40f8aa54289e725b2fa2e695a22f7aca6 100644 (file)
@@ -1,6 +1,7 @@
 ; This file contains various testcases that require tracking whether bits are
 ; set or cleared by various instructions.
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep %ELIM
+; RUN: llvm-as < %s | opt -instcombine -instcombine -disable-output &&
+; RUN: llvm-as < %s | opt -instcombine -instcombine | llvm-dis | not grep %ELIM
 
 ; Reduce down to a single XOR
 int %test3(int %B) {
index 95f4ed1eb3b9753a42217c40e112ce38e1d7503a..849df7c6f8e11f7344deed81a57748fe6d6a9c0d 100644 (file)
@@ -141,3 +141,11 @@ uint %test21(uint %tmp.1) {
         %tmp.6 = or uint %tmp.5, %tmp.3   ;; add tmp.1, 2
        ret uint %tmp.6
 }
+
+int %test22(int %B) {
+        %ELIM41 = and int %B, 1         ; <int> [#uses=1]
+        %ELIM7 = and int %B, -2         ; <int> [#uses=1]
+        %ELIM5 = or int %ELIM41, %ELIM7         ; <int> [#uses=1]
+       ret int %ELIM5
+}