mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Add a couple rlwinm tests for bitfield clears
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2bbcca30b7
commit
1b0674c966
17
test/CodeGen/PowerPC/rlwinm.ll
Normal file
17
test/CodeGen/PowerPC/rlwinm.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; All of these ands and shifts should be folded into rlwimi's
|
||||
; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep and &&
|
||||
; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | grep rlwinm | wc -l | grep 2
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
int %test1(int %a) {
|
||||
entry:
|
||||
%tmp.1 = and int %a, 268431360 ; <int> [#uses=1]
|
||||
ret int %tmp.1
|
||||
}
|
||||
|
||||
int %test2(int %a) {
|
||||
entry:
|
||||
%tmp.1 = and int %a, -268435441 ; <int> [#uses=1]
|
||||
ret int %tmp.1
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user