mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 04:35:43 +00:00
Testcase to make sure we can apply the shift to the operands of the select,
eliminating the shifts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e576b91948
commit
1c48527330
@ -96,3 +96,16 @@ uint %test14a(uint %A) {
|
||||
%D = shr uint %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
|
||||
ret uint %D
|
||||
}
|
||||
|
||||
int %test15(bool %C) {
|
||||
%A = select bool %C, int 3, int 1
|
||||
%V = shl int %A, ubyte 2
|
||||
ret int %V
|
||||
}
|
||||
|
||||
int %test15a(bool %C) {
|
||||
%A = select bool %C, ubyte 3, ubyte 1
|
||||
%V = shl int 64, ubyte %A
|
||||
ret int %V
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user