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