OSDN Git Service

Test that xor/select are folded into a select with inverted operands.
authorChris Lattner <sabre@nondot.org>
Sun, 24 Apr 2005 07:28:53 +0000 (07:28 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Apr 2005 07:28:53 +0000 (07:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21494 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/xor.ll

index 772c480..8b1e193 100644 (file)
@@ -141,4 +141,8 @@ void %test20(uint %A, uint %B) {  ; The "swap idiom"
         ret void
 }
 
-
+int %test21(bool %C, int %A, int %B) {
+       %C2 = xor bool %C, true
+       %D = select bool %C2, int %A, int %B
+       ret int %D
+}