mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
e877a2fb7c
Changes: There was a condition for `!NeedsFrameRecord` missing in the assert. The assert in question has changed to: + assert((!RPI.isPaired() || !NeedsFrameRecord || RPI.Reg2 != AArch64::FP || + RPI.Reg1 == AArch64::LR) && + "FrameRecord must be allocated together with LR"); This addresses PR43016. llvm-svn: 369122
23 lines
508 B
LLVM
23 lines
508 B
LLVM
; RUN: llc -mtriple=aarch64-linux-gnu -o - %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: %bb.0:
|
|
; CHECK-NOT: stp
|
|
; CHECK-NOT: mov w{{[0-9]+}}, w0
|
|
; CHECK-LABEL: %bb.1:
|
|
; CHECK: stp {{.*}}x19
|
|
; CHECK: mov w{{[0-9]+}}, w0
|
|
|
|
define i32 @shrinkwrapme(i32 %paramAcrossCall, i32 %paramNotAcrossCall) {
|
|
entry:
|
|
%cmp5 = icmp sgt i32 %paramNotAcrossCall, 0
|
|
br i1 %cmp5, label %CallBB, label %Exit
|
|
CallBB:
|
|
%call = call i32 @fun()
|
|
%add = add i32 %call, %paramAcrossCall
|
|
ret i32 %add
|
|
Exit:
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @fun()
|