New testcase
authorChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 05:03:25 +0000 (05:03 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 05:03:25 +0000 (05:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16835 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/and.ll

index 1b2dafb218dfc6fc5cb8f698d80af2ef56c07eb7..e11be02997d30c937e5078b20f57fea406e27200 100644 (file)
@@ -178,3 +178,10 @@ bool %test26(int %A) {
         ret bool %D
 }
 
+ubyte %test27(ubyte %A) {
+       %B = and ubyte %A, 4
+       %C = sub ubyte %B, 16
+       %D = and ubyte %C, 240   ;; 0xF0
+       %E = add ubyte %D, 16
+       ret ubyte %E
+}