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