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