mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
adjust the instruction ordering in some PPC tests: changes due to postRA haz. rec.
llvm-svn: 145678
This commit is contained in:
parent
9ffa9b3c7f
commit
2984a1dfcb
@ -7,8 +7,8 @@ target triple = "powerpc-apple-darwin9.6"
|
||||
define void @foo() nounwind {
|
||||
entry:
|
||||
;CHECK: mfcr r2
|
||||
;CHECK: rlwinm r2, r2, 8, 0, 31
|
||||
;CHECK: lis r0, 1
|
||||
;CHECK: rlwinm r2, r2, 8, 0, 31
|
||||
;CHECK: ori r0, r0, 34540
|
||||
;CHECK: stwx r2, r1, r0
|
||||
%x = alloca [100000 x i8] ; <[100000 x i8]*> [#uses=1]
|
||||
|
@ -15,18 +15,20 @@ define i32* @f1() nounwind {
|
||||
|
||||
; PPC32-NOFP: _f1:
|
||||
; PPC32-NOFP: lis r0, -1
|
||||
; PPC32-NOFP: addi r3, r1, 68
|
||||
; PPC32-NOFP: ori r0, r0, 32704
|
||||
; PPC32-NOFP: stwux r1, r1, r0
|
||||
; PPC32-NOFP: addi r3, r1, 68
|
||||
; PPC32-NOFP: lwz r1, 0(r1)
|
||||
; PPC32-NOFP: blr
|
||||
|
||||
|
||||
; PPC32-FP: _f1:
|
||||
; PPC32-FP: stw r31, -4(r1)
|
||||
; PPC32-FP: lis r0, -1
|
||||
; PPC32-FP: stw r31, -4(r1)
|
||||
; PPC32-FP: mr r31, r1
|
||||
; PPC32-FP: ori r0, r0, 32704
|
||||
; PPC32-FP: addi r3, r31, 64
|
||||
; PPC32-FP: stwux r1, r1, r0
|
||||
; ...
|
||||
; PPC32-FP: lwz r1, 0(r1)
|
||||
; PPC32-FP: lwz r31, -4(r1)
|
||||
; PPC32-FP: blr
|
||||
@ -34,19 +36,20 @@ define i32* @f1() nounwind {
|
||||
|
||||
; PPC64-NOFP: _f1:
|
||||
; PPC64-NOFP: lis r0, -1
|
||||
; PPC64-NOFP: addi r3, r1, 116
|
||||
; PPC64-NOFP: ori r0, r0, 32656
|
||||
; PPC64-NOFP: stdux r1, r1, r0
|
||||
; PPC64-NOFP: addi r3, r1, 116
|
||||
; PPC64-NOFP: ld r1, 0(r1)
|
||||
; PPC64-NOFP: blr
|
||||
|
||||
|
||||
; PPC64-FP: _f1:
|
||||
; PPC64-FP: std r31, -8(r1)
|
||||
; PPC64-FP: lis r0, -1
|
||||
; PPC64-FP: std r31, -8(r1)
|
||||
; PPC64-FP: mr r31, r1
|
||||
; PPC64-FP: ori r0, r0, 32640
|
||||
; PPC64-FP: addi r3, r31, 124
|
||||
; PPC64-FP: stdux r1, r1, r0
|
||||
; ...
|
||||
; PPC64-FP: ld r1, 0(r1)
|
||||
; PPC64-FP: ld r31, -8(r1)
|
||||
; PPC64-FP: blr
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
declare void @bar(i64 %x, i64 %y)
|
||||
|
||||
; CHECK: li 4, 2
|
||||
; CHECK: li {{[53]}}, 0
|
||||
; CHECK: li 4, 2
|
||||
; CHECK: li 6, 3
|
||||
; CHECK: mr {{[53]}}, {{[53]}}
|
||||
|
||||
|
@ -17,10 +17,22 @@ entry:
|
||||
bb2: ; preds = %entry, %bb3
|
||||
%gotovar.4.0 = phi i8* [ %gotovar.4.0.pre, %bb3 ], [ %0, %entry ] ; <i8*> [#uses=1]
|
||||
; PIC: mtctr
|
||||
; PIC-NEXT: li
|
||||
; PIC-NEXT: li
|
||||
; PIC-NEXT: li
|
||||
; PIC-NEXT: li
|
||||
; PIC-NEXT: bctr
|
||||
; STATIC: mtctr
|
||||
; STATIC-NEXT: li
|
||||
; STATIC-NEXT: li
|
||||
; STATIC-NEXT: li
|
||||
; STATIC-NEXT: li
|
||||
; STATIC-NEXT: bctr
|
||||
; PPC64: mtctr
|
||||
; PPC64-NEXT: li
|
||||
; PPC64-NEXT: li
|
||||
; PPC64-NEXT: li
|
||||
; PPC64-NEXT: li
|
||||
; PPC64-NEXT: bctr
|
||||
indirectbr i8* %gotovar.4.0, [label %L5, label %L4, label %L3, label %L2, label %L1]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user