1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4 2# RUN: llc -o - %s --run-pass=machine-cp -mcp-use-is-copy-instr -mtriple=arm64-apple-macos --verify-machineinstrs | FileCheck %s 3 4--- | 5 declare void @foo() 6 7 define void @test() { 8 unreachable 9 } 10 define void @test2() { 11 unreachable 12 } 13... 14 15--- 16name: test 17tracksRegLiveness: true 18body: | 19 ; CHECK-LABEL: name: test 20 ; CHECK: bb.0: 21 ; CHECK-NEXT: successors: %bb.1(0x80000000) 22 ; CHECK-NEXT: liveins: $w0 23 ; CHECK-NEXT: {{ $}} 24 ; CHECK-NEXT: $w8 = ORRWrs $wzr, $w0, 0, implicit-def $x8 25 ; CHECK-NEXT: {{ $}} 26 ; CHECK-NEXT: bb.1: 27 ; CHECK-NEXT: liveins: $x8 28 ; CHECK-NEXT: {{ $}} 29 ; CHECK-NEXT: $x0 = ADDXri $x8, 1, 0 30 ; CHECK-NEXT: RET undef $lr, implicit $x0 31 bb.0: 32 successors: %bb.1(0x80000000) 33 liveins: $w0 34 35 $x8 = ORRXrs $xzr, $x0, 0, implicit $w0 36 $w8 = ORRWrs $wzr, $w0, 0, implicit-def $x8 37 38 bb.1: 39 liveins: $x8 40 $x0 = ADDXri $x8, 1, 0 41 42 RET undef $lr, implicit $x0 43... 44--- 45name: test2 46tracksRegLiveness: true 47body: | 48 bb.0: 49 liveins: $q14, $d29, $x0, $x1 50 ; CHECK-LABEL: name: test2 51 ; CHECK: liveins: $q14, $d29, $x0, $x1 52 ; CHECK-NEXT: {{ $}} 53 ; CHECK-NEXT: renamable $d8 = COPY killed renamable $d29 54 ; CHECK-NEXT: BL @foo, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp 55 ; CHECK-NEXT: renamable $b0 = SMAXVv8i8v killed renamable $d8, implicit-def $q0 56 ; CHECK-NEXT: RET_ReallyLR implicit $b0 57 renamable $q8 = COPY renamable $q14 58 renamable $d8 = COPY killed renamable $d29 59 BL @foo, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp 60 renamable $b0 = SMAXVv8i8v killed renamable $d8, implicit-def $q0 61 RET_ReallyLR implicit $b0 62... 63