mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add new tests, make existing tests more difficult
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1078d11854
commit
84f644aacf
@ -7,7 +7,7 @@
|
||||
|
||||
bool %test1(int %X) {
|
||||
%A = cast int %X to uint
|
||||
%c = setne uint %A, 0 ; Convert to setne int %X, 0
|
||||
%c = setne uint %A, 12 ; Convert to setne int %X, 12
|
||||
ret bool %c
|
||||
}
|
||||
|
||||
@ -30,8 +30,15 @@ bool %test3(int %A, int %B) {
|
||||
|
||||
int %test4(int %A) {
|
||||
%B = cast int %A to uint
|
||||
%C = shl uint %B, ubyte 1
|
||||
%C = shl uint %B, ubyte 2
|
||||
%D = cast uint %C to int
|
||||
ret int %D
|
||||
}
|
||||
|
||||
short %test5(short %A) {
|
||||
%B = cast short %A to uint
|
||||
%C = and uint %B, 15
|
||||
%D = cast uint %C to short
|
||||
ret short %D
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user