mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f49e868aa
commit
e14a9a71d3
@ -149,3 +149,17 @@ Lab1:
|
||||
Lab2:
|
||||
ret int 1231231
|
||||
}
|
||||
|
||||
int %test23(bool %C, int %a) {
|
||||
entry:
|
||||
br bool %C, label %endif, label %else
|
||||
|
||||
else:
|
||||
br label %endif
|
||||
|
||||
endif:
|
||||
%b.0 = phi int [ 0, %entry ], [ 1, %else ]
|
||||
%tmp.4 = add int %b.0, 1
|
||||
ret int %tmp.4
|
||||
}
|
||||
|
||||
|
@ -87,3 +87,16 @@ bool %test17(ubyte %A) {
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
bool %test18(bool %C, int %a) {
|
||||
entry:
|
||||
br bool %C, label %endif, label %else
|
||||
|
||||
else:
|
||||
br label %endif
|
||||
|
||||
endif:
|
||||
%b.0 = phi int [ 0, %entry ], [ 1, %else ]
|
||||
%tmp.4 = setlt int %b.0, 123
|
||||
ret bool %tmp.4
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user