mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00b1a7e23e
commit
2b8e478b5d
@ -58,3 +58,10 @@ bool %test9(uint %A) {
|
||||
%C = cast uint %B to bool
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
uint %test10(uint %A) {
|
||||
%B = and uint %A, 12
|
||||
%C = xor uint %B, 15
|
||||
%D = and uint %C, 1
|
||||
ret uint %D
|
||||
}
|
||||
|
@ -117,3 +117,15 @@ bool %test19(ubyte %A) {
|
||||
%C = seteq ubyte %B, 34
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
|
||||
bool %test20(int %A) {
|
||||
%B = xor int %A, -1
|
||||
%C = and int %B, 4
|
||||
%D = setne int %C, 0
|
||||
%E = and int %B, 123 ; Make the usecount of B = 2
|
||||
%F = cast int %E to bool
|
||||
%G = and bool %D, %F
|
||||
ret bool %G
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user