mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 03:33:42 +00:00
Add another case, which an implementation of test6 must be sure to handle
correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8917d36229
commit
26f9c065a7
@ -48,6 +48,12 @@ bool %test6(bool %A) {
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
bool %test6a(bool %A) {
|
||||
%B = cast bool %A to int
|
||||
%C = setne int %B, -1 ; Always true!
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
bool %test7(sbyte* %A) {
|
||||
%B = cast sbyte* %A to int*
|
||||
%C = seteq int* %B, null
|
||||
|
Loading…
x
Reference in New Issue
Block a user