summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/xor.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-27 01:43:02 +0000
committerChris Lattner <sabre@nondot.org>2006-02-27 01:43:02 +0000
commite047eedc04040a9be133f49fdf834c7cbb2f2d55 (patch)
treeab74b71733a3440b87ef0c0ecd6be069b7ee1cf2 /test/Transforms/InstCombine/xor.ll
parenta6bc5a4d2138ea3cba90f5a794dd525228ec2c73 (diff)
downloadllvm-e047eedc04040a9be133f49fdf834c7cbb2f2d55.tar.gz
llvm-e047eedc04040a9be133f49fdf834c7cbb2f2d55.tar.bz2
llvm-e047eedc04040a9be133f49fdf834c7cbb2f2d55.tar.xz
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/xor.ll')
-rw-r--r--test/Transforms/InstCombine/xor.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll
index 13199de8bd..9baff65c8b 100644
--- a/test/Transforms/InstCombine/xor.ll
+++ b/test/Transforms/InstCombine/xor.ll
@@ -155,3 +155,14 @@ int %test22(bool %X) {
ret int %Q
}
+bool %test23(int %a, int %b) {
+ %tmp.2 = xor int %b, %a
+ %tmp.4 = seteq int %tmp.2, %a
+ ret bool %tmp.4
+}
+
+bool %test24(int %c, int %d) {
+ %tmp.2 = xor int %d, %c
+ %tmp.4 = setne int %tmp.2, %c
+ ret bool %tmp.4
+}