2014-05-24 20:50:23 +08:00
|
|
|
; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-fp-elim < %s | FileCheck %s
|
2013-01-31 20:12:40 +08:00
|
|
|
@var = global i32 0
|
|
|
|
|
|
|
|
declare void @bar()
|
|
|
|
|
|
|
|
define void @test_w29_reserved() {
|
2013-07-14 04:38:47 +08:00
|
|
|
; CHECK-LABEL: test_w29_reserved:
|
2013-03-10 02:25:40 +08:00
|
|
|
; CHECK: add x29, sp, #{{[0-9]+}}
|
2013-01-31 20:12:40 +08:00
|
|
|
|
2015-02-28 05:17:42 +08:00
|
|
|
%val1 = load volatile i32, i32* @var
|
|
|
|
%val2 = load volatile i32, i32* @var
|
|
|
|
%val3 = load volatile i32, i32* @var
|
|
|
|
%val4 = load volatile i32, i32* @var
|
|
|
|
%val5 = load volatile i32, i32* @var
|
|
|
|
%val6 = load volatile i32, i32* @var
|
|
|
|
%val7 = load volatile i32, i32* @var
|
|
|
|
%val8 = load volatile i32, i32* @var
|
|
|
|
%val9 = load volatile i32, i32* @var
|
2013-01-31 20:12:40 +08:00
|
|
|
|
|
|
|
; 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
|
|
|
|
}
|