brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 1565b08 Raw
66 lines · plain
1// RUN: llvm-mc -triple=mips64el-pc-linux -filetype=obj -mcpu=mips64r2 < %s -o - | llvm-readobj -r - | FileCheck %s2 3// Check that the R_MIPS_GOT_DISP relocations were created.4 5//       CHECK: Relocations [6// CHECK:     0x{{[0-9,A-F]+}} R_MIPS_GOT_DISP7 8	.text9	.abicalls10	.section	.mdebug.abi64,"",@progbits11	.file	"<stdin>"12	.text13	.globl	main14	.align	315	.type	main,@function16	.set	nomips1617	.ent	main18main:                                   # @main19	.frame	$sp,16,$ra20	.mask 	0x00000000,021	.fmask	0x90000000,-422	.set	noreorder23	.set	nomacro24	.set	noat25# %bb.0:                                # %entry26	daddiu	$sp, $sp, -1627	sd	$ra, 8($sp)             # 8-byte Folded Spill28	sd	$gp, 0($sp)             # 8-byte Folded Spill29	lui	$1, %hi(%neg(%gp_rel(main)))30	daddu	$1, $1, $2531	daddiu	$gp, $1, %lo(%neg(%gp_rel(main)))32	ld	$1, %got_disp(shl)($gp)33	ld	$5, 0($1)34	ld	$1, %got_page($.str)($gp)35	ld	$25, %call16(printf)($gp)36	jalr	$2537	daddiu	$4, $1, %got_ofst($.str)38	addiu	$2, $zero, 039	ld	$gp, 0($sp)             # 8-byte Folded Reload40	ld	$ra, 8($sp)             # 8-byte Folded Reload41	jr	$ra42	daddiu	$sp, $sp, 1643	.set	at44	.set	macro45	.set	reorder46	.end	main47$tmp0:48	.size	main, ($tmp0)-main49 50	.type	shl,@object             # @shl51	.data52	.globl	shl53	.align	354shl:55	.8byte	1                       # 0x156	.size	shl, 857 58	.type	$.str,@object           # @.str59	.section	.rodata.str1.1,"aMS",@progbits,160$.str:61	.asciz	"0x%llx\n"62	.size	$.str, 863 64 65	.text66