mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
update tests for smarter BIC usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
abff28087f
commit
f27ca42552
@ -7,13 +7,11 @@
|
||||
define void @t() nounwind ssp {
|
||||
entry:
|
||||
; CHECK: t:
|
||||
; CHECK: mov r0, sp
|
||||
; CHECK: bfc r0, #0, #3
|
||||
; CHECK: bic r0, sp, #7
|
||||
; CHECK: subs r0, #16
|
||||
; CHECK: mov sp, r0
|
||||
; Yes, this is stupid codegen, but it's correct.
|
||||
; CHECK: mov r0, sp
|
||||
; CHECK: bfc r0, #0, #3
|
||||
; CHECK: bic r0, sp, #7
|
||||
; CHECK: subs r0, #16
|
||||
; CHECK: mov sp, r0
|
||||
%size = mul i32 8, 2
|
||||
|
@ -30,7 +30,7 @@ define i32 @f4(i32 %a) {
|
||||
ret i32 %tmp
|
||||
}
|
||||
; CHECK: f4:
|
||||
; CHECK: and r0, r0, #1448498774
|
||||
; CHECK: bic r0, r0, #-1448498775
|
||||
|
||||
; 66846720 = 0x03fc0000
|
||||
define i32 @f5(i32 %a) {
|
||||
|
@ -6,7 +6,7 @@ define i32 @test1(i32 %x) {
|
||||
; ARMv7A: uxtb16 r0, r0
|
||||
|
||||
; ARMv7M: test1
|
||||
; ARMv7M: and r0, r0, #16711935
|
||||
; ARMv7M: bic r0, r0, #-16711936
|
||||
%tmp1 = and i32 %x, 16711935 ; <i32> [#uses=1]
|
||||
ret i32 %tmp1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user