[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / CodeGen / RISCV / renamable-copy.mir
blob06f17f4edbccfad38d6a1b113f347fe75130df8f
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
7 --- |
8   define void @foo() {
9   entry:
10     ret void
11   }
12 ...
13 ---
14 name:            foo
15 body:             |
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 ...