Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / RISCV / GlobalISel / regbankselect / global-rv64.mir
blob36146c158d8a591fd5298cdd9b50b002c8df0dc9
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   @var = global i32 0
9   define ptr @test_global() {
10     ret ptr @var
11   }
13 ...
14 ---
15 name:            test_global
16 legalized:       true
17 tracksRegLiveness: true
18 body:             |
19   bb.0 (%ir-block.0):
20     ; RV64I-LABEL: name: test_global
21     ; RV64I: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @var
22     ; RV64I-NEXT: $x10 = COPY [[GV]](p0)
23     ; RV64I-NEXT: PseudoRET implicit $x10
24     %0:_(p0) = G_GLOBAL_VALUE @var
25     $x10 = COPY %0(p0)
26     PseudoRET implicit $x10
28 ...