|
| 1 | +# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 6 |
| 2 | +# RUN: llc -mtriple=aarch64 -mattr=+sme -run-pass=aarch64-post-coalescer-pass -o - %s | FileCheck %s |
| 3 | + |
| 4 | +--- |
| 5 | +name: foo |
| 6 | +body: | |
| 7 | + bb.0.entry: |
| 8 | + ; CHECK-LABEL: name: foo |
| 9 | + ; CHECK: RET_ReallyLR |
| 10 | + RET_ReallyLR |
| 11 | +... |
| 12 | +--- |
| 13 | +name: bar |
| 14 | +machineFunctionInfo: |
| 15 | + hasStreamingModeChanges: true |
| 16 | +body: | |
| 17 | + bb.0.entry: |
| 18 | + ; CHECK-LABEL: name: bar |
| 19 | + ; CHECK: ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp |
| 20 | + ; CHECK-NEXT: MSRpstatesvcrImm1 1, 1, csr_aarch64_smstartstop, implicit-def dead $nzcv, implicit-def $sp, implicit-def dead $d0, implicit $vg, implicit-def $vg, implicit-def $fpmr |
| 21 | + ; CHECK-NEXT: $d0 = COPY undef %0:fpr64 |
| 22 | + ; CHECK-NEXT: BL @foo, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $d0, implicit-def $sp |
| 23 | + ; CHECK-NEXT: ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp |
| 24 | + ; CHECK-NEXT: MSRpstatesvcrImm1 1, 0, csr_aarch64_smstartstop, implicit-def dead $nzcv, implicit $vg, implicit-def $vg, implicit-def $fpmr |
| 25 | + ; CHECK-NEXT: RET_ReallyLR |
| 26 | + ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp |
| 27 | + %1:fpr64 = COALESCER_BARRIER_FPR64 undef %1 |
| 28 | + MSRpstatesvcrImm1 1, 1, csr_aarch64_smstartstop, implicit-def dead $nzcv, implicit-def $sp, implicit-def dead $d0, implicit $vg, implicit-def $vg, implicit-def $fpmr |
| 29 | + $d0 = COPY %1 |
| 30 | + BL @foo, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $d0, implicit-def $sp |
| 31 | + ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp |
| 32 | + MSRpstatesvcrImm1 1, 0, csr_aarch64_smstartstop, implicit-def dead $nzcv, implicit $vg, implicit-def $vg, implicit-def $fpmr |
| 33 | + RET_ReallyLR |
| 34 | +... |
0 commit comments