mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -47,3 +47,14 @@ ubyte %test8(ubyte %A) { ; AND associates
|
||||
ret ubyte %C
|
||||
}
|
||||
|
||||
bool %test9(int %A) {
|
||||
%B = and int %A, -2147483648 ; Test of sign bit, convert to setle %A, 0
|
||||
%C = cast int %B to bool
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
bool %test9(uint %A) {
|
||||
%B = and uint %A, 2147483648 ; Test of sign bit, convert to setle %A, 0
|
||||
%C = cast uint %B to bool
|
||||
ret bool %C
|
||||
}
|
||||
|
Reference in New Issue
Block a user