# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -o - %s -mtriple=riscv32 -simplify-mir \
# RUN: -run-pass=postrapseudos | FileCheck --check-prefix=RV32 %s
# RUN: llc -o - %s -mtriple=riscv64 -simplify-mir \
# RUN: -run-pass=postrapseudos | FileCheck --check-prefix=RV64 %s
--- |
define void @foo() {
entry:
ret void
}
...
---
name: foo
body: |
bb.0.entry:
liveins: $x11
; RV32-LABEL: name: foo
; RV32: liveins: $x11
; RV32-NEXT: {{ $}}
; RV32-NEXT: $x10 = ADDI renamable $x11, 0
; RV32-NEXT: PseudoRET implicit $x10
;
; RV64-LABEL: name: foo
; RV64: liveins: $x11
; RV64-NEXT: {{ $}}
; RV64-NEXT: $x10 = ADDI renamable $x11, 0
; RV64-NEXT: PseudoRET implicit $x10
renamable $x10 = COPY renamable $x11
PseudoRET implicit $x10
...