mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
f252e214b7
This reverts commit bc9a29b9ee6ade4894252b1470977142c32b4602. The reasoning that this patch was wrong was itself incorrect (see discussion on llvm-commits). This patch does seem to be exposing a latent SVE code generation bug on non-public tests, which should not block a correctness fix for public, non-SVE use cases.
23 lines
802 B
LLVM
23 lines
802 B
LLVM
; RUN: llc -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -disable-post-ra --frame-pointer=all < %s | FileCheck %s
|
|
|
|
; The purpose of this test is to verify that frame pointer (x29)
|
|
; is correctly setup in the presence of callee-saved floating
|
|
; point registers. The frame pointer should point to the frame
|
|
; record, which is located 16 bytes above the end of the CSR
|
|
; space when a single FP CSR is in use.
|
|
define void @test1(i32) #26 {
|
|
entry:
|
|
call void asm sideeffect "nop", "~{d8}"() #26
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: test1:
|
|
; CHECK: str d8, [sp, #-32]!
|
|
; CHECK-NEXT: stp x29, x30, [sp, #16]
|
|
; CHECK-NEXT: add x29, sp, #16
|
|
; CHECK: nop
|
|
; CHECK: ldp x29, x30, [sp, #16]
|
|
; CHECK-NEXT: ldr d8, [sp], #32
|
|
; CHECK-NEXT: ret
|
|
|
|
attributes #26 = { nounwind }
|