xref: /llvm-project/llvm/test/CodeGen/RISCV/renamable-copy.mir (revision b01c006f734a0977a4fd9c7f1a706c8230663739)
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -o - %s -mtriple=riscv32 -simplify-mir \
3# RUN:   -run-pass=postrapseudos | FileCheck --check-prefix=RV32 %s
4# RUN: llc -o - %s -mtriple=riscv64 -simplify-mir \
5# RUN:   -run-pass=postrapseudos | FileCheck --check-prefix=RV64 %s
6
7--- |
8  define void @foo() {
9  entry:
10    ret void
11  }
12...
13---
14name:            foo
15body:             |
16  bb.0.entry:
17    liveins: $x11
18    ; RV32-LABEL: name: foo
19    ; RV32: liveins: $x11
20    ; RV32-NEXT: {{  $}}
21    ; RV32-NEXT: $x10 = ADDI renamable $x11, 0
22    ; RV32-NEXT: PseudoRET implicit $x10
23    ;
24    ; RV64-LABEL: name: foo
25    ; RV64: liveins: $x11
26    ; RV64-NEXT: {{  $}}
27    ; RV64-NEXT: $x10 = ADDI renamable $x11, 0
28    ; RV64-NEXT: PseudoRET implicit $x10
29    renamable $x10 = COPY renamable $x11
30    PseudoRET implicit $x10
31...
32