1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -run-pass=instruction-select -simplify-mir -verify-machineinstrs %s -o - \
3 # RUN: | FileCheck -check-prefix=RV64I %s
9 tracksRegLiveness: true
13 ; RV64I-LABEL: name: virt_to_phys
14 ; RV64I: [[ADDI:%[0-9]+]]:gpr = ADDI $x0, 1
15 ; RV64I-NEXT: $x10 = COPY [[ADDI]]
16 ; RV64I-NEXT: PseudoRET implicit $x10
17 %0:gprb(s64) = G_CONSTANT i64 1
19 PseudoRET implicit $x10
26 tracksRegLiveness: true
31 ; RV64I-LABEL: name: phys_to_phys
32 ; RV64I: liveins: $x10, $x11
34 ; RV64I-NEXT: $x10 = COPY $x11
35 ; RV64I-NEXT: PseudoRET implicit $x10
37 PseudoRET implicit $x10
44 tracksRegLiveness: true
48 ; RV64I-LABEL: name: virt_to_virt
50 %0:gprb(s64) = G_CONSTANT i64 1
51 %1:gprb(s64) = COPY %0(s64)
59 tracksRegLiveness: true
64 ; RV64I-LABEL: name: phys_to_virt
65 ; RV64I: liveins: $x10
67 ; RV64I-NEXT: PseudoRET
68 %0:gprb(s64) = COPY $x10