mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
; This test makes sure that these instructions are properly eliminated.
|
; 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
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep set
|
||||||
|
|
||||||
%X = uninitialized global int
|
%X = uninitialized global int
|
||||||
@ -121,3 +121,11 @@ int %test21(int %a) {
|
|||||||
ret int %retval
|
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
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user