new testcase

llvm-svn: 26130
This commit is contained in:
Chris Lattner 2006-02-12 02:06:31 +00:00
parent 5e488c9cc2
commit 2234a136b3
1 changed files with 9 additions and 1 deletions

View File

@ -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
}