mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Two new tests for shifts followed by ands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd7b5fff82
commit
0daee350cf
@ -93,3 +93,15 @@ bool %test14(ubyte %A) {
|
||||
%C = setne ubyte %B, 0
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
ubyte %test15(ubyte %A) {
|
||||
%B = shr ubyte %A, ubyte 7
|
||||
%C = and ubyte %B, 2 ; Always equals zero
|
||||
ret ubyte %C
|
||||
}
|
||||
|
||||
ubyte %test16(ubyte %A) {
|
||||
%B = shl ubyte %A, ubyte 2
|
||||
%C = and ubyte %B, 3
|
||||
ret ubyte %C
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user