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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [frv/] [fdpic.s] - Rev 156

Go to most recent revision | Compare with Previous | Blame | View Log

	.text
	.global foo
foo:
	subi gr15, #gprel12(bar), gr16
 
	addi gr15, #got12(foo), gr4
	ldi @(gr15, #got12(foo)), gr5
 
	setlo #gotlo(foo), gr6
	sethi #gothi(foo), gr6
 
	addi gr15, #gotfuncdesc12(foo), gr7
	ldi @(gr15, #gotfuncdesc12(foo)), gr8
 
	setlo #gotfuncdesclo(foo), gr9
	sethi #gotfuncdeschi(foo), gr9
 
	addi gr15, #gotoff12(baz), gr16
 
	addi gr15, #gotoff12(foo), gr4
	ldi @(gr15, #gotoff12(foo)), gr5
 
	setlo #gotofflo(foo), gr6
	sethi #gotoffhi(foo), gr6
 
	addi gr15, #gotofffuncdesc12(foo), gr7
	ldi @(gr15, #gotofffuncdesc12(foo)), gr8
 
	setlo #gotofffuncdesclo(foo), gr9
	sethi #gotofffuncdeschi(foo), gr9
 
	.section .rodata
bar:
 
	.section .sdata,"aw",@progbits
	.p2align 2
baz:
	.picptr	funcdesc(foo)
	.word	foo
 

Go to most recent revision | 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.