OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [mips/] [elf-rel8-mips16.s] - Rev 205

Compare with Previous | Blame | View Log

	.equ	$fprel, 2
	.set	mips16
 
	.ent	foo
foo:
	move	$2,$gp
 
	# Test various forms of relocation syntax.
 
	li	$4,(%hi gvar)
	sll	$4,16
	addiu	$4,(%lo (gvar))
	lw	$4,%lo gvar($5)
 
	# Check that registers aren't confused with $ identifiers.
 
	lw	$4,($fprel)($17)
 
	# Check various forms of paired relocations.
 
	lw	$4,%got(lvar)($2)
	sb	$5,%lo(lvar)($4)
 
	lw	$4,%got(lvar)($2)
	addiu	$4,%lo(lvar)
 
	# Check individual relocations.
 
	lw	$3,%call16(gfunc)($2)
	addiu	$4,%call16(gfunc)
 
	lw	$4,%gprel(gvar)($2)
	sw	$4,%gprel(gvar)($2)
	addiu	$4,%gprel(gvar)
	.align	6
	.end	foo
 
	.data
lvar:	.word	1,2

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.