mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
Add testcases for harder combining cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
570751c2a7
commit
a5c5830d53
@ -61,3 +61,21 @@ int %test11(int %a) {
|
||||
ret int %R
|
||||
}
|
||||
|
||||
int %test12(bool %cond, int %a) {
|
||||
%b = or int %a, 1
|
||||
%c = select bool %cond, int %b, int %a
|
||||
ret int %c
|
||||
}
|
||||
|
||||
int %test12a(bool %cond, int %a) {
|
||||
%b = shr int %a, ubyte 1
|
||||
%c = select bool %cond, int %b, int %a
|
||||
ret int %c
|
||||
}
|
||||
|
||||
int %test12b(bool %cond, int %a) {
|
||||
%b = shr int %a, ubyte 1
|
||||
%c = select bool %cond, int %a, int %b
|
||||
ret int %c
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user