aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-04 04:37:46 +0000
committerChris Lattner <sabre@nondot.org>2003-06-04 04:37:46 +0000
commit5feab1631f11c8709e535c239081815c2c2786a8 (patch)
treed8db0f2667412d34e9ac17b0f31d13fcf56b62b5
parentf5b1d3dcd4563c918c5717fee56fd0056ee45916 (diff)
downloadexternal_llvm-5feab1631f11c8709e535c239081815c2c2786a8.zip
external_llvm-5feab1631f11c8709e535c239081815c2c2786a8.tar.gz
external_llvm-5feab1631f11c8709e535c239081815c2c2786a8.tar.bz2
Add new test for inverting branches
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6598 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/or.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index f4f360d..e01bb11 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -105,3 +105,13 @@ ubyte %test17(ubyte %A, ubyte %B) { ; Test that (A|c1)|(B|c2) == (A|B)|(c1|c2)
%E = or ubyte %C, %D
ret ubyte %E
}
+
+ubyte %test18(bool %c) {
+ %d = xor bool %c, true ; invert the condition
+ br bool %d, label %True, label %False
+True:
+ ret ubyte 1
+False:
+ ret ubyte 3
+}
+