1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -run-pass=legalizer %s -o - | FileCheck %s
7 define ptr @test_global() {
15 tracksRegLiveness: true
25 ; CHECK-LABEL: name: test_global
26 ; CHECK: [[GV:%[0-9]+]]:_(p0) = G_GLOBAL_VALUE @var
27 ; CHECK-NEXT: $x10 = COPY [[GV]](p0)
28 ; CHECK-NEXT: PseudoRET implicit $x10
29 %0:_(p0) = G_GLOBAL_VALUE @var
31 PseudoRET implicit $x10