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
9 define ptr @test_global() {
17 tracksRegLiveness: true
20 ; RV32I-LABEL: name: test_global
21 ; RV32I: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @var
22 ; RV32I-NEXT: $x10 = COPY [[GV]](p0)
23 ; RV32I-NEXT: PseudoRET implicit $x10
24 %0:_(p0) = G_GLOBAL_VALUE @var
26 PseudoRET implicit $x10