[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / llvm / test / CodeGen / RISCV / GlobalISel / regbankselect / copy-rv32.mir
blob1296d5f3cbfa129cb2cb17aa4b02f50ac1f8cfac
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=regbankselect \
3 # RUN:   -simplify-mir -verify-machineinstrs %s \
4 # RUN:   -o - | FileCheck -check-prefix=RV32I %s
6 ---
7 name:            virt_to_phys
8 legalized:       true
9 tracksRegLiveness: true
10 body:             |
11   bb.0.entry:
13     ; RV32I-LABEL: name: virt_to_phys
14     ; RV32I: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
15     ; RV32I-NEXT: $x10 = COPY [[C]](s32)
16     ; RV32I-NEXT: PseudoRET implicit $x10
17     %0:_(s32) = G_CONSTANT i32 1
18     $x10 = COPY %0(s32)
19     PseudoRET implicit $x10
21 ...
22 ---
23 name:            phys_to_phys
24 legalized:       true
25 tracksRegLiveness: true
26 body:             |
27   bb.0.entry:
28     liveins: $x10, $x11
30     ; RV32I-LABEL: name: phys_to_phys
31     ; RV32I: liveins: $x10, $x11
32     ; RV32I-NEXT: {{  $}}
33     ; RV32I-NEXT: $x10 = COPY $x11
34     ; RV32I-NEXT: PseudoRET implicit $x10
35     $x10 = COPY $x11
36     PseudoRET implicit $x10
38 ...
39 ---
40 name:            virt_to_virt
41 legalized:       true
42 tracksRegLiveness: true
43 body:             |
44   bb.0.entry:
46     ; RV32I-LABEL: name: virt_to_virt
47     ; RV32I: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
48     ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY [[C]](s32)
49     ; RV32I-NEXT: PseudoRET
50     %0:_(s32) = G_CONSTANT i32 1
51     %1:_(s32) = COPY %0(s32)
52     PseudoRET
54 ...
55 ---
56 name:            phys_to_virt
57 legalized:       true
58 tracksRegLiveness: true
59 body:             |
60   bb.0.entry:
61     liveins: $x10
63     ; RV32I-LABEL: name: phys_to_virt
64     ; RV32I: liveins: $x10
65     ; RV32I-NEXT: {{  $}}
66     ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
67     ; RV32I-NEXT: PseudoRET
68     %0:_(s32) = COPY $x10
69     PseudoRET
71 ...