blob: 95e069b54551020870e92db5b3b0318747edf4e7 [file] [log] [blame]
Hal Finkel97a189c2016-08-31 00:52:03 +00001; RUN: llc < %s | FileCheck %s
2target datalayout = "E-m:e-i64:64-n32:64"
3target triple = "powerpc64"
4
5; Function Attrs: nounwind
6define void @test() #0 {
7entry:
8 call void @func()
9 call void asm sideeffect "nop", "~{r31}"() #1, !srcloc !0
10 ret void
11
12; CHECK-LABEL: @test
13; CHECK: std 31, -8(1)
14; CHECK: stdu 1, -{{[0-9]+}}(1)
15; CHECK-NOT: std 31,
16; CHECK: bl func
17; CHECK: ld 31, -8(1)
18; CHECK: blr
19}
20
21declare void @func()
22
23attributes #0 = { nounwind "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "target-cpu"="ppc64" }
24attributes #1 = { nounwind }
25
26!0 = !{i32 57}