1; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s 2 3; Make sure all regs are spilled 4define anyregcc void @anyregcc1() { 5entry: 6;CHECK-LABEL: anyregcc1 7;CHECK: stmg %r2, %r15, 16(%r15) 8;CHECK: aghi %r15, -96 9;CHECK: std %f0, 224(%r15) 10;CHECK: std %f1, 11;CHECK: std %f2, 232(%r15) 12;CHECK: std %f3, 13;CHECK: std %f4, 240(%r15) 14;CHECK: std %f5, 15;CHECK: std %f6, 248(%r15) 16;CHECK: std %f7, 17;CHECK: std %f8, 18;CHECK: std %f9, 19;CHECK: std %f10, 20;CHECK: std %f11, 21;CHECK: std %f12, 22;CHECK: std %f13, 23;CHECK: std %f14, 24;CHECK: std %f15, 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 34 ret void 35} 36 37; Make sure we don't spill any FPs 38declare anyregcc void @foo() 39define void @anyregcc2() { 40entry: 41;CHECK-LABEL: anyregcc2 42;CHECK-NOT: std 43;CHECK: std %f8, 44;CHECK-NEXT: std %f9, 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, 51;CHECK-NOT: std 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) 70 ret void 71} 72 73declare void @llvm.experimental.patchpoint.void(i64, i32, i8*, i32, ...) 74declare i64 @llvm.experimental.patchpoint.i64(i64, i32, i8*, i32, ...) 75