1 ; RUN: llc -march=mips -relocation-model=static -mattr=+noabicalls < %s | FileCheck %s
3 define i32* @get_gp() {
5 %0 = call i32 @llvm.read_register.i32(metadata !0)
6 %1 = inttoptr i32 %0 to i32*
10 ; CHECK-LABEL: get_gp:
13 declare i32 @llvm.read_register.i32(metadata)
15 !llvm.named.register.$28 = !{!0}