# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=riscv64 -run-pass=regbankselect \
# RUN: -disable-gisel-legality-check -simplify-mir -verify-machineinstrs %s \
# RUN: -o - | FileCheck -check-prefix=RV64I %s
---
name: virt_to_phys
legalized: true
tracksRegLiveness: true
body: |
bb.0.entry:
; RV64I-LABEL: name: virt_to_phys
; RV64I: [[C:%[0-9]+]]:gprb(s64) = G_CONSTANT i64 1
; RV64I-NEXT: $x10 = COPY [[C]](s64)
; RV64I-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 1
$x10 = COPY %0(s64)
PseudoRET implicit $x10
...
---
name: phys_to_phys
legalized: true
tracksRegLiveness: true
body: |
bb.0.entry:
liveins: $x10, $x11
; RV64I-LABEL: name: phys_to_phys
; RV64I: liveins: $x10, $x11
; RV64I-NEXT: {{ $}}
; RV64I-NEXT: $x10 = COPY $x11
; RV64I-NEXT: PseudoRET implicit $x10
$x10 = COPY $x11
PseudoRET implicit $x10
...
---
name: virt_to_virt
legalized: true
tracksRegLiveness: true
body: |
bb.0.entry:
; RV64I-LABEL: name: virt_to_virt
; RV64I: [[C:%[0-9]+]]:gprb(s64) = G_CONSTANT i64 1
; RV64I-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY [[C]](s64)
; RV64I-NEXT: PseudoRET
%0:_(s64) = G_CONSTANT i64 1
%1:_(s64) = COPY %0(s64)
PseudoRET
...
---
name: phys_to_virt
legalized: true
tracksRegLiveness: true
body: |
bb.0.entry:
liveins: $x10
; RV64I-LABEL: name: phys_to_virt
; RV64I: liveins: $x10
; RV64I-NEXT: {{ $}}
; RV64I-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
; RV64I-NEXT: PseudoRET
%0:_(s64) = COPY $x10
PseudoRET
...