summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-27 02:36:19 +0000
committerChris Lattner <sabre@nondot.org>2006-02-27 02:36:19 +0000
commitf76f5da19b339b25e8f8f6cdd361dbe4ff4f197b (patch)
tree3decc10466a540e02f61108ad1a3181391ce63a9 /test
parent26ab9a921860e52389f090388f520bac0208a085 (diff)
downloadllvm-f76f5da19b339b25e8f8f6cdd361dbe4ff4f197b.tar.gz
llvm-f76f5da19b339b25e8f8f6cdd361dbe4ff4f197b.tar.bz2
llvm-f76f5da19b339b25e8f8f6cdd361dbe4ff4f197b.tar.xz
new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/set.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll
index 1e07083e50..756ade4952 100644
--- a/test/Transforms/InstCombine/set.ll
+++ b/test/Transforms/InstCombine/set.ll
@@ -129,3 +129,19 @@ bool %test22(uint %A, int %X) {
%R = or bool %C, %Z
ret bool %R
}
+
+int %test23(int %a) {
+ %tmp.1 = and int %a, 1
+ %tmp.2 = seteq int %tmp.1, 0
+ %tmp.3 = cast bool %tmp.2 to int ;; xor tmp1, 1
+ ret int %tmp.3
+}
+
+int %test24(uint %a) {
+ %tmp1 = and uint %a, 4
+ %tmp.1 = shr uint %tmp1, ubyte 2
+ %tmp.2 = seteq uint %tmp.1, 0
+ %tmp.3 = cast bool %tmp.2 to int ;; xor tmp1, 1
+ ret int %tmp.3
+}
+