mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
3ae734a60c
This was done with the following sed invocation to catch label lines demarking function boundaries: sed -i '' "s/^;\( *\)\([A-Z0-9_]*\):\( *\)test\([A-Za-z0-9_-]*\):\( *\)$/;\1\2-LABEL:\3test\4:\5/g" test/CodeGen/*/*.ll which was written conservatively to avoid false positives rather than false negatives. I scanned through all the changes and everything looks correct. llvm-svn: 186258
53 lines
1.4 KiB
LLVM
53 lines
1.4 KiB
LLVM
; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-fp-elim < %s | FileCheck %s
|
|
@var = global i32 0
|
|
|
|
declare void @bar()
|
|
|
|
define void @test_w29_reserved() {
|
|
; CHECK-LABEL: test_w29_reserved:
|
|
; CHECK: .cfi_startproc
|
|
; CHECK: .cfi_def_cfa sp, 96
|
|
; CHECK: add x29, sp, #{{[0-9]+}}
|
|
; CHECK: .cfi_def_cfa x29, 16
|
|
; CHECK: .cfi_offset x30, -8
|
|
; CHECK: .cfi_offset x29, -16
|
|
; CHECK: .cfi_offset x28, -24
|
|
; CHECK: .cfi_offset x27, -32
|
|
; CHECK: .cfi_offset x26, -40
|
|
; CHECK: .cfi_offset x25, -48
|
|
; CHECK: .cfi_offset x24, -56
|
|
; CHECK: .cfi_offset x23, -64
|
|
; CHECK: .cfi_offset x22, -72
|
|
; CHECK: .cfi_offset x21, -80
|
|
; CHECK: .cfi_offset x20, -88
|
|
; CHECK: .cfi_offset x19, -96
|
|
|
|
%val1 = load volatile i32* @var
|
|
%val2 = load volatile i32* @var
|
|
%val3 = load volatile i32* @var
|
|
%val4 = load volatile i32* @var
|
|
%val5 = load volatile i32* @var
|
|
%val6 = load volatile i32* @var
|
|
%val7 = load volatile i32* @var
|
|
%val8 = load volatile i32* @var
|
|
%val9 = load volatile i32* @var
|
|
|
|
; CHECK-NOT: ldr w29,
|
|
|
|
; Call to prevent fp-elim that occurs regardless in leaf functions.
|
|
call void @bar()
|
|
|
|
store volatile i32 %val1, i32* @var
|
|
store volatile i32 %val2, i32* @var
|
|
store volatile i32 %val3, i32* @var
|
|
store volatile i32 %val4, i32* @var
|
|
store volatile i32 %val5, i32* @var
|
|
store volatile i32 %val6, i32* @var
|
|
store volatile i32 %val7, i32* @var
|
|
store volatile i32 %val8, i32* @var
|
|
store volatile i32 %val9, i32* @var
|
|
|
|
ret void
|
|
; CHECK: ret
|
|
}
|