1; RUN: llc -march=mips -relocation-model=static -mattr=+noabicalls < %s | FileCheck %s 2 3define i32* @get_gp() { 4entry: 5 %0 = call i32 @llvm.read_register.i32(metadata !0) 6 %1 = inttoptr i32 %0 to i32* 7 ret i32* %1 8} 9 10; CHECK-LABEL: get_gp: 11; CHECK: move $2, $gp 12 13declare i32 @llvm.read_register.i32(metadata) 14 15!llvm.named.register.$28 = !{!0} 16 17!0 = !{!"$28"} 18