summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-12 02:06:31 +0000
committerChris Lattner <sabre@nondot.org>2006-02-12 02:06:31 +0000
commite7df1a27f93b9133ef69b7e46083063d021d89bf (patch)
treeff441954ed1f84f39c10d7d7ba047d22c190cc34 /test
parentecd96539816d7d7222a412464cf8fd66276f8341 (diff)
downloadllvm-e7df1a27f93b9133ef69b7e46083063d021d89bf.tar.gz
llvm-e7df1a27f93b9133ef69b7e46083063d021d89bf.tar.bz2
llvm-e7df1a27f93b9133ef69b7e46083063d021d89bf.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/set.ll10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll
index 56b995e905..1e07083e50 100644
--- a/test/Transforms/InstCombine/set.ll
+++ b/test/Transforms/InstCombine/set.ll
@@ -1,6 +1,6 @@
; This test makes sure that these instructions are properly eliminated.
;
-
+; RUN: llvm-as < %s | opt -instcombine -disable-output &&
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep set
%X = uninitialized global int
@@ -121,3 +121,11 @@ int %test21(int %a) {
ret int %retval
}
+bool %test22(uint %A, int %X) {
+ %B = and uint %A, 100663295
+ %C = setlt uint %B, 268435456
+ %Y = and int %X, 7
+ %Z = setgt int %Y, -1
+ %R = or bool %C, %Z
+ ret bool %R
+}