Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / RISCV / GlobalISel / instruction-select / copy32.mir
bloba0ec98b145470eafbf0e9b10ba19dbfd863ff082
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=instruction-select -simplify-mir -verify-machineinstrs %s -o - \
3 # RUN: | FileCheck -check-prefix=RV32I %s
5 ---
6 name:            virt_to_phys
7 legalized:       true
8 regBankSelected: true
9 tracksRegLiveness: true
10 body:             |
11   bb.0.entry:
13     ; RV32I-LABEL: name: virt_to_phys
14     ; RV32I: [[ADDI:%[0-9]+]]:gpr = ADDI $x0, 1
15     ; RV32I-NEXT: $x10 = COPY [[ADDI]]
16     ; RV32I-NEXT: PseudoRET implicit $x10
17     %0:gprb(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 regBankSelected: true
26 tracksRegLiveness: true
27 body:             |
28   bb.0.entry:
29     liveins: $x10, $x11
31     ; RV32I-LABEL: name: phys_to_phys
32     ; RV32I: liveins: $x10, $x11
33     ; RV32I-NEXT: {{  $}}
34     ; RV32I-NEXT: $x10 = COPY $x11
35     ; RV32I-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     ; RV32I-LABEL: name: virt_to_virt
49     ; RV32I: PseudoRET
50     %0:gprb(s32) = G_CONSTANT i32 1
51     %1:gprb(s32) = COPY %0(s32)
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     ; RV32I-LABEL: name: phys_to_virt
65     ; RV32I: liveins: $x10
66     ; RV32I-NEXT: {{  $}}
67     ; RV32I-NEXT: PseudoRET
68     %0:gprb(s32) = COPY $x10
69     PseudoRET
71 ...