brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.1 KiB · 22f0931 Raw
126 lines · plain
1; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7     | FileCheck --check-prefixes=ALL %s2; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx | FileCheck --check-prefixes=ALL,AVX %s3 4; Don't need to preserve registers before using them.5define preserve_nonecc double @preserve_nonecc1() nounwind {6entry:7;ALL-LABEL:   preserve_nonecc18;ALL-NOT:     movq %rax9;ALL-NOT:     movq %rbx10;ALL-NOT:     movq %rcx11;ALL-NOT:     movq %rdx12;ALL-NOT:     movq %rsi13;ALL-NOT:     movq %rdi14;ALL-NOT:     movq %r815;ALL-NOT:     movq %r916;ALL-NOT:     movq %r1017;ALL-NOT:     movq %r1118;ALL-NOT:     movq %r1219;ALL-NOT:     movq %r1320;ALL-NOT:     movq %r1421;ALL-NOT:     movq %r1522;ALL-NOT:     movaps %xmm123;ALL-NOT:     movaps %xmm024;AVX-NOT:     vmovups %ymm125;AVX-NOT:     vmovups %ymm026;ALL-NOT:     movq {{.*}}, %rax27;ALL-NOT:     movq {{.*}}, %rbx28;ALL-NOT:     movq {{.*}}, %rcx29;ALL-NOT:     movq {{.*}}, %rdx30;ALL-NOT:     movq {{.*}}, %rsi31;ALL-NOT:     movq {{.*}}, %rdi32;ALL-NOT:     movq {{.*}}, %r833;ALL-NOT:     movq {{.*}}, %r934;ALL-NOT:     movq {{.*}}, %r1035;ALL-NOT:     movq {{.*}}, %r1136;ALL-NOT:     movq {{.*}}, %r1237;ALL-NOT:     movq {{.*}}, %r1338;ALL-NOT:     movq {{.*}}, %r1439;ALL-NOT:     movq {{.*}}, %r1540;ALL-NOT:     movaps {{.*}} %xmm041;ALL-NOT:     movaps {{.*}} %xmm142;AVX-NOT:     vmovups {{.*}} %ymm043;AVX-NOT:     vmovups {{.*}} %ymm144  call void asm sideeffect "", "~{rax},~{rbx},~{rcx},~{rdx},~{rsi},~{rdi},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15},~{rbp},~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{xmm8},~{xmm9},~{xmm10},~{xmm11},~{xmm12},~{xmm13},~{xmm14},~{xmm15}"()45  ret double 0.46}47 48; Save/restore live registers across preserve_none function call.49declare preserve_nonecc double @bar_double(i64, i64)50define void @preserve_nonecc2() nounwind {51entry:52;ALL-LABEL: preserve_nonecc253;ALL:       movq %rax54;ALL:       movq %rcx55;ALL:       movq %rdx56;ALL:       movq %r857;ALL:       movq %r958;ALL:       movq %r1059;ALL:       movq %r1160;ALL:       movaps %xmm061;ALL:       movaps %xmm162;ALL:       movaps %xmm263;ALL:       movaps %xmm364;ALL:       movaps %xmm465;ALL:       movaps %xmm566;ALL:       movaps %xmm667;ALL:       movaps %xmm768;ALL:       movaps %xmm869;ALL:       movaps %xmm970;ALL:       movaps %xmm1071;ALL:       movaps %xmm1172;ALL:       movaps %xmm1273;ALL:       movaps %xmm1374;ALL:       movaps %xmm1475;ALL:       movaps %xmm1576;ALL:       movq {{.*}}, %rax77;ALL:       movq {{.*}}, %rcx78;ALL:       movq {{.*}}, %rdx79;ALL:       movq {{.*}}, %r880;ALL:       movq {{.*}}, %r981;ALL:       movq {{.*}}, %r1082;ALL:       movq {{.*}}, %r1183;ALL:       movaps {{.*}} %xmm084;ALL:       movaps {{.*}} %xmm185;ALL:       movaps {{.*}} %xmm286;ALL:       movaps {{.*}} %xmm387;ALL:       movaps {{.*}} %xmm488;ALL:       movaps {{.*}} %xmm589;ALL:       movaps {{.*}} %xmm690;ALL:       movaps {{.*}} %xmm791;ALL:       movaps {{.*}} %xmm892;ALL:       movaps {{.*}} %xmm993;ALL:       movaps {{.*}} %xmm1094;ALL:       movaps {{.*}} %xmm1195;ALL:       movaps {{.*}} %xmm1296;ALL:       movaps {{.*}} %xmm1397;ALL:       movaps {{.*}} %xmm1498;ALL:       movaps {{.*}} %xmm1599  %a0 = call i64 asm sideeffect "", "={rax}"() nounwind100  %a1 = call i64 asm sideeffect "", "={rcx}"() nounwind101  %a2 = call i64 asm sideeffect "", "={rdx}"() nounwind102  %a3 = call i64 asm sideeffect "", "={r8}"() nounwind103  %a4 = call i64 asm sideeffect "", "={r9}"() nounwind104  %a5 = call i64 asm sideeffect "", "={r10}"() nounwind105  %a6 = call i64 asm sideeffect "", "={r11}"() nounwind106  %a10 = call <2 x double> asm sideeffect "", "={xmm0}"() nounwind107  %a11 = call <2 x double> asm sideeffect "", "={xmm1}"() nounwind108  %a12 = call <2 x double> asm sideeffect "", "={xmm2}"() nounwind109  %a13 = call <2 x double> asm sideeffect "", "={xmm3}"() nounwind110  %a14 = call <2 x double> asm sideeffect "", "={xmm4}"() nounwind111  %a15 = call <2 x double> asm sideeffect "", "={xmm5}"() nounwind112  %a16 = call <2 x double> asm sideeffect "", "={xmm6}"() nounwind113  %a17 = call <2 x double> asm sideeffect "", "={xmm7}"() nounwind114  %a18 = call <2 x double> asm sideeffect "", "={xmm8}"() nounwind115  %a19 = call <2 x double> asm sideeffect "", "={xmm9}"() nounwind116  %a20 = call <2 x double> asm sideeffect "", "={xmm10}"() nounwind117  %a21 = call <2 x double> asm sideeffect "", "={xmm11}"() nounwind118  %a22 = call <2 x double> asm sideeffect "", "={xmm12}"() nounwind119  %a23 = call <2 x double> asm sideeffect "", "={xmm13}"() nounwind120  %a24 = call <2 x double> asm sideeffect "", "={xmm14}"() nounwind121  %a25 = call <2 x double> asm sideeffect "", "={xmm15}"() nounwind122  call preserve_nonecc double @bar_double(i64 1, i64 2)123  call void asm sideeffect "", "{rax},{rcx},{rdx},{r8},{r9},{r10},{r11},{xmm0},{xmm1},{xmm2},{xmm3},{xmm4},{xmm5},{xmm6},{xmm7},{xmm8},{xmm9},{xmm10},{xmm11},{xmm12},{xmm13},{xmm14},{xmm15}"(i64 %a0, i64 %a1, i64 %a2, i64 %a3, i64 %a4, i64 %a5, i64 %a6, <2 x double> %a10, <2 x double> %a11, <2 x double> %a12, <2 x double> %a13, <2 x double> %a14, <2 x double> %a15, <2 x double> %a16, <2 x double> %a17, <2 x double> %a18, <2 x double> %a19, <2 x double> %a20, <2 x double> %a21, <2 x double> %a22, <2 x double> %a23, <2 x double> %a24, <2 x double> %a25)124  ret void125}126