New testcase
authorChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 19:05:29 +0000 (19:05 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 19:05:29 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7266 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/or.ll

index 529e43ced98fe94f08ae978d2c7da471ad5423f4..3cf8fc1f0230b8cb915f0dfe9cd9a935d3d81fc2 100644 (file)
@@ -143,3 +143,10 @@ ubyte %test22(ubyte %A) {
        %E = xor ubyte %D, 12
        ret ubyte %E
 }
+
+uint %test23(uint %A) {
+       %B = or uint %A, 4     ; Should be eliminated
+       %C = and uint %B, 8
+       ret uint %C
+}
+