mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
Fix PowerPC tests to be register allocator independent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a8ac8de1d
commit
92d098642d
@ -1,4 +1,4 @@
|
|||||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
|
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 -regalloc=linearscan | FileCheck %s
|
||||||
|
|
||||||
declare i8* @llvm.frameaddress(i32) nounwind readnone
|
declare i8* @llvm.frameaddress(i32) nounwind readnone
|
||||||
|
|
||||||
|
@ -43,13 +43,13 @@ L2: ; preds = %L3, %bb2
|
|||||||
|
|
||||||
L1: ; preds = %L2, %bb2
|
L1: ; preds = %L2, %bb2
|
||||||
%res.3 = phi i32 [ %phitmp, %L2 ], [ 2, %bb2 ] ; <i32> [#uses=1]
|
%res.3 = phi i32 [ %phitmp, %L2 ], [ 2, %bb2 ] ; <i32> [#uses=1]
|
||||||
; PIC: addis r4, r4, ha16(Ltmp0-L0$pb)
|
; PIC: addis r[[R0:[0-9]+]], r{{[0-9]+}}, ha16(Ltmp0-L0$pb)
|
||||||
; PIC: li r6, lo16(Ltmp0-L0$pb)
|
; PIC: li r[[R1:[0-9]+]], lo16(Ltmp0-L0$pb)
|
||||||
; PIC: add r4, r4, r6
|
; PIC: add r[[R2:[0-9]+]], r[[R0]], r[[R1]]
|
||||||
; PIC: stw r4
|
; PIC: stw r[[R2]]
|
||||||
; STATIC: li r5, lo16(Ltmp0)
|
; STATIC: li r[[R0:[0-9]+]], lo16(Ltmp0)
|
||||||
; STATIC: addis r5, r5, ha16(Ltmp0)
|
; STATIC: addis r[[R0]], r[[R0]], ha16(Ltmp0)
|
||||||
; STATIC: stw r5
|
; STATIC: stw r[[R0]]
|
||||||
store i8* blockaddress(@foo, %L5), i8** @nextaddr, align 4
|
store i8* blockaddress(@foo, %L5), i8** @nextaddr, align 4
|
||||||
ret i32 %res.3
|
ret i32 %res.3
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user