1 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
3 ; Make sure all regs are spilled
4 define anyregcc void @anyregcc1() {
6 ;CHECK-LABEL: anyregcc1
7 ;CHECK: stmg %r2, %r15, 16(%r15)
9 ;CHECK: std %f0, 224(%r15)
11 ;CHECK: std %f2, 232(%r15)
13 ;CHECK: std %f4, 240(%r15)
15 ;CHECK: std %f6, 248(%r15)
25 ;CHECK: .cfi_offset %f0, -32
26 ;CHECK: .cfi_offset %f2, -24
27 ;CHECK: .cfi_offset %f4, -16
28 ;CHECK: .cfi_offset %f6, -8
29 ;CHECK: ld %f0, 224(%r15)
30 ;CHECK: ld %f2, 232(%r15)
31 ;CHECK: ld %f4, 240(%r15)
32 ;CHECK: ld %f6, 248(%r15)
33 call void asm sideeffect "", "~{r0},~{r1},~{r2},~{r3},~{r4},~{r5},~{r6},~{r7},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{f0},~{f1},~{f2},~{f3},~{f4},~{f5},~{f6},~{f7},~{f8},~{f9},~{f10},~{f11},~{f12},~{f13},~{f14},~{f15}"() nounwind
37 ; Make sure we don't spill any FPs
38 declare anyregcc void @foo()
39 define void @anyregcc2() {
41 ;CHECK-LABEL: anyregcc2
45 ;CHECK-NEXT: std %f10,
46 ;CHECK-NEXT: std %f11,
47 ;CHECK-NEXT: std %f12,
48 ;CHECK-NEXT: std %f13,
49 ;CHECK-NEXT: std %f14,
50 ;CHECK-NEXT: std %f15,
52 %a0 = call double asm sideeffect "", "={f0}"() nounwind
53 %a1 = call double asm sideeffect "", "={f1}"() nounwind
54 %a2 = call double asm sideeffect "", "={f2}"() nounwind
55 %a3 = call double asm sideeffect "", "={f3}"() nounwind
56 %a4 = call double asm sideeffect "", "={f4}"() nounwind
57 %a5 = call double asm sideeffect "", "={f5}"() nounwind
58 %a6 = call double asm sideeffect "", "={f6}"() nounwind
59 %a7 = call double asm sideeffect "", "={f7}"() nounwind
60 %a8 = call double asm sideeffect "", "={f8}"() nounwind
61 %a9 = call double asm sideeffect "", "={f9}"() nounwind
62 %a10 = call double asm sideeffect "", "={f10}"() nounwind
63 %a11 = call double asm sideeffect "", "={f11}"() nounwind
64 %a12 = call double asm sideeffect "", "={f12}"() nounwind
65 %a13 = call double asm sideeffect "", "={f13}"() nounwind
66 %a14 = call double asm sideeffect "", "={f14}"() nounwind
67 %a15 = call double asm sideeffect "", "={f15}"() nounwind
68 call anyregcc void @foo()
69 call void asm sideeffect "", "{f0},{f1},{f2},{f3},{f4},{f5},{f6},{f7},{f8},{f9},{f10},{f11},{f12},{f13},{f14},{f15}"(double %a0, double %a1, double %a2, double %a3, double %a4, double %a5, double %a6, double %a7, double %a8, double %a9, double %a10, double %a11, double %a12, double %a13, double %a14, double %a15)
73 declare void @llvm.experimental.patchpoint.void(i64, i32, ptr, i32, ...)
74 declare i64 @llvm.experimental.patchpoint.i64(i64, i32, ptr, i32, ...)