Add a slight variant of test10
authorChris Lattner <sabre@nondot.org>
Mon, 23 Feb 2004 05:59:52 +0000 (05:59 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Feb 2004 05:59:52 +0000 (05:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11736 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/mul.ll

index 34a45724e5d40f02a9a58fff5804a9e8b23988af..e684d31ed3efbfdb7fe26fbd5f8f1df47243d547 100644 (file)
@@ -58,3 +58,10 @@ uint %test10(int %a, uint %b) {
        ret uint %e
 }
 
+uint %test11(int %a, uint %b) {
+       %c = setle int %a, -1
+       %d = cast bool %c to uint
+       %e = mul uint %d, %b           ; e = b & (a >> 31)
+       ret uint %e
+}
+