1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=regbankselect \
3 # RUN: -disable-gisel-legality-check -simplify-mir -verify-machineinstrs %s \
4 # RUN: -o - | FileCheck -check-prefix=RV32I %s
9 tracksRegLiveness: true
13 ; RV32I-LABEL: name: virt_to_phys
14 ; RV32I: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
15 ; RV32I-NEXT: $x10 = COPY [[C]](s32)
16 ; RV32I-NEXT: PseudoRET implicit $x10
17 %0:_(s32) = G_CONSTANT i32 1
19 PseudoRET implicit $x10
25 tracksRegLiveness: true
30 ; RV32I-LABEL: name: phys_to_phys
31 ; RV32I: liveins: $x10, $x11
33 ; RV32I-NEXT: $x10 = COPY $x11
34 ; RV32I-NEXT: PseudoRET implicit $x10
36 PseudoRET implicit $x10
42 tracksRegLiveness: true
46 ; RV32I-LABEL: name: virt_to_virt
47 ; RV32I: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
48 ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY [[C]](s32)
49 ; RV32I-NEXT: PseudoRET
50 %0:_(s32) = G_CONSTANT i32 1
51 %1:_(s32) = COPY %0(s32)
58 tracksRegLiveness: true
63 ; RV32I-LABEL: name: phys_to_virt
64 ; RV32I: liveins: $x10
66 ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
67 ; RV32I-NEXT: PseudoRET