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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-h8300/] [gcsection.s] - Rev 179

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

	.h8300h
	.section	.text.functionWeUse,"ax",@progbits
	.align 1
	.global _functionWeUse
_functionWeUse:
	mov.l	er6,@-er7
	mov.l	er7,er6
	subs	#4,er7
	mov.w	r0,@(-2,er6)
	mov.w	@(-2,er6),r2
	mov.w	r2,r0
	adds	#4,er7
	mov.l	@er7+,er6
	rts
	.size	_functionWeUse, .-_functionWeUse
	.section	.text.functionWeDontUse,"ax",@progbits
	.align 1
	.global _functionWeDontUse
_functionWeDontUse:
	mov.l	er6,@-er7
	mov.l	er7,er6
	subs	#4,er7
	mov.w	r0,@(-2,er6)
	mov.w	@(-2,er6),r2
	mov.w	r2,r0
	adds	#4,er7
	mov.l	@er7+,er6
	rts
	.size	_functionWeDontUse, .-_functionWeDontUse
	.section	.text.start,"ax",@progbits
	.align 1
	.global _start
_start:
	mov.l	er6,@-er7
	mov.l	er7,er6
	mov.w	#75,r0
	jsr	@_functionWeUse
	mov.w	r0,r2
	mov.w	r2,r0
	mov.l	@er7+,er6
	rts
	.size	_start, .-_start
	.end
 

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.