1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 2
2 # RUN: llc -mtriple=armv7 -run-pass=machine-cp %s -o - | FileCheck %s
4 # Positive test: $d15 has sub-register $s30, which should be propagated.
7 tracksRegLiveness: true
14 ; CHECK-LABEL: name: test_d15
15 ; CHECK: liveins: $d15
17 ; CHECK-NEXT: $s0 = COPY $s30
18 ; CHECK-NEXT: BX_RET 14 /* CC::al */, $noreg, implicit killed $s0
19 renamable $d14 = COPY killed $d15
20 $s0 = COPY killed renamable $s28
21 BX_RET 14 /* CC::al */, $noreg, implicit killed $s0
25 # Negative test: $d18 does not have sub-registers.
28 tracksRegLiveness: true
35 ; CHECK-LABEL: name: test_d18
36 ; CHECK: liveins: $d18
38 ; CHECK-NEXT: renamable $d14 = COPY killed $d18
39 ; CHECK-NEXT: $s0 = COPY killed renamable $s28
40 ; CHECK-NEXT: BX_RET 14 /* CC::al */, $noreg, implicit killed $s0
41 renamable $d14 = COPY killed $d18
42 $s0 = COPY killed renamable $s28
43 BX_RET 14 /* CC::al */, $noreg, implicit killed $s0