63 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 42# RUN: llc -o - %s --run-pass=machine-cp -mcp-use-is-copy-instr -mtriple=arm64-apple-macos --verify-machineinstrs | FileCheck %s3 4--- |5 declare void @foo()6 7 define void @test() {8 unreachable9 }10 define void @test2() {11 unreachable12 }13...14 15---16name: test17tracksRegLiveness: true18body: |19 ; CHECK-LABEL: name: test20 ; CHECK: bb.0:21 ; CHECK-NEXT: successors: %bb.1(0x80000000)22 ; CHECK-NEXT: liveins: $w023 ; CHECK-NEXT: {{ $}}24 ; CHECK-NEXT: $w8 = ORRWrs $wzr, $w0, 0, implicit-def $x825 ; CHECK-NEXT: {{ $}}26 ; CHECK-NEXT: bb.1:27 ; CHECK-NEXT: liveins: $x828 ; CHECK-NEXT: {{ $}}29 ; CHECK-NEXT: $x0 = ADDXri $x8, 1, 030 ; CHECK-NEXT: RET undef $lr, implicit $x031 bb.0:32 successors: %bb.1(0x80000000)33 liveins: $w034 35 $x8 = ORRXrs $xzr, $x0, 0, implicit $w036 $w8 = ORRWrs $wzr, $w0, 0, implicit-def $x837 38 bb.1:39 liveins: $x840 $x0 = ADDXri $x8, 1, 041 42 RET undef $lr, implicit $x043...44---45name: test246tracksRegLiveness: true47body: |48 bb.0:49 liveins: $q14, $d29, $x0, $x150 ; CHECK-LABEL: name: test251 ; CHECK: liveins: $q14, $d29, $x0, $x152 ; CHECK-NEXT: {{ $}}53 ; CHECK-NEXT: renamable $d8 = COPY killed renamable $d2954 ; CHECK-NEXT: BL @foo, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp55 ; CHECK-NEXT: renamable $b0 = SMAXVv8i8v killed renamable $d8, implicit-def $q056 ; CHECK-NEXT: RET_ReallyLR implicit $b057 renamable $q8 = COPY renamable $q1458 renamable $d8 = COPY killed renamable $d2959 BL @foo, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp60 renamable $b0 = SMAXVv8i8v killed renamable $d8, implicit-def $q061 RET_ReallyLR implicit $b062...63