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