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
9 define ptr @test_global() {
17 tracksRegLiveness: true
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
26 PseudoRET implicit $x10