1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
2 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass machine-cp -verify-machineinstrs -o - %s | FileCheck %s
10 ; CHECK-LABEL: name: test1
13 ; CHECK-NEXT: renamable $w0 = MOVi32imm 5
14 ; CHECK-NEXT: renamable $w3 = ADDWrr renamable $w0, killed renamable $w2
15 ; CHECK-NEXT: RET_ReallyLR implicit killed $w0
16 renamable $w1 = MOVi32imm 5
17 renamable $w3 = ADDWrr renamable $w1, killed renamable $w2
18 renamable $w0 = COPY killed renamable $w1
19 RET_ReallyLR implicit killed $w0
28 ; CHECK-LABEL: name: test2
31 ; CHECK-NEXT: renamable $w1 = MOVi32imm 5
32 ; CHECK-NEXT: renamable $w3 = ADDWrr $w1, killed renamable $w2
33 ; CHECK-NEXT: renamable $w0 = COPY killed renamable $w1
34 ; CHECK-NEXT: RET_ReallyLR implicit killed $w0
35 renamable $w1 = MOVi32imm 5
36 renamable $w3 = ADDWrr $w1, killed renamable $w2
37 renamable $w0 = COPY killed renamable $w1
38 RET_ReallyLR implicit killed $w0
47 ; CHECK-LABEL: name: test3
50 ; CHECK-NEXT: renamable $w1 = MOVi32imm 5
51 ; CHECK-NEXT: renamable $w3 = ADDWrr renamable $w1, killed renamable $w2, implicit $w1
52 ; CHECK-NEXT: renamable $w0 = COPY killed renamable $w1
53 ; CHECK-NEXT: RET_ReallyLR implicit killed $w0
54 renamable $w1 = MOVi32imm 5
55 renamable $w3 = ADDWrr renamable $w1, killed renamable $w2, implicit $w1
56 renamable $w0 = COPY killed renamable $w1
57 RET_ReallyLR implicit killed $w0