Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / RISCV / GlobalISel / regbankselect / copy-rv64.mir
blobc162ac0b6e996c363fd3a840e198430d1f790aa0
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -run-pass=regbankselect \
3 # RUN:   -disable-gisel-legality-check -simplify-mir -verify-machineinstrs %s \
4 # RUN:   -o - | FileCheck -check-prefix=RV64I %s
6 ---
7 name:            virt_to_phys
8 legalized:       true
9 tracksRegLiveness: true
10 body:             |
11   bb.0.entry:
13     ; RV64I-LABEL: name: virt_to_phys
14     ; RV64I: [[C:%[0-9]+]]:gprb(s64) = G_CONSTANT i64 1
15     ; RV64I-NEXT: $x10 = COPY [[C]](s64)
16     ; RV64I-NEXT: PseudoRET implicit $x10
17     %0:_(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 tracksRegLiveness: true
26 body:             |
27   bb.0.entry:
28     liveins: $x10, $x11
30     ; RV64I-LABEL: name: phys_to_phys
31     ; RV64I: liveins: $x10, $x11
32     ; RV64I-NEXT: {{  $}}
33     ; RV64I-NEXT: $x10 = COPY $x11
34     ; RV64I-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     ; RV64I-LABEL: name: virt_to_virt
47     ; RV64I: [[C:%[0-9]+]]:gprb(s64) = G_CONSTANT i64 1
48     ; RV64I-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY [[C]](s64)
49     ; RV64I-NEXT: PseudoRET
50     %0:_(s64) = G_CONSTANT i64 1
51     %1:_(s64) = COPY %0(s64)
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     ; RV64I-LABEL: name: phys_to_virt
64     ; RV64I: liveins: $x10
65     ; RV64I-NEXT: {{  $}}
66     ; RV64I-NEXT: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
67     ; RV64I-NEXT: PseudoRET
68     %0:_(s64) = COPY $x10
69     PseudoRET
71 ...