mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf9d0acfef
commit
935a10d5dc
@ -1,5 +1,4 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select
|
||||
|
||||
@ -154,3 +153,17 @@ int %test18(int %X, int %Y, bool %C) {
|
||||
%V = div int %Y, %R ; div Y,X
|
||||
ret int %V
|
||||
}
|
||||
|
||||
int %test19(uint %x) {
|
||||
entry:
|
||||
%tmp = setgt uint %x, 2147483647
|
||||
%retval = select bool %tmp, int -1, int 0
|
||||
ret int %retval
|
||||
}
|
||||
|
||||
int %test20(int %x) {
|
||||
%tmp = setlt int %x, 0
|
||||
%retval = select bool %tmp, int -1, int 0
|
||||
ret int %retval
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user