mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
New testcase for the instruction combiner that happen often in the Java FE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14082 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -96,3 +96,16 @@ int %test13b(int %a, int %b) {
|
|||||||
%V = select bool %C, int %b, int %a
|
%V = select bool %C, int %b, int %a
|
||||||
ret int %V
|
ret int %V
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool %test14a(bool %C, int %X) {
|
||||||
|
%V = select bool %C, int %X, int 0
|
||||||
|
%R = setlt int %V, 1 ; (X < 1) | !C
|
||||||
|
ret bool %R
|
||||||
|
}
|
||||||
|
|
||||||
|
bool %test14b(bool %C, int %X) {
|
||||||
|
%V = select bool %C, int 0, int %X
|
||||||
|
%R = setlt int %V, 1 ; (X < 1) | C
|
||||||
|
ret bool %R
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user