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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [tic54x/] [align.s] - Rev 832

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

* alignment directives
* .even == .align 1, .even 2 == longword boundary
* .align [size]  ; size is number of words (value must be a power of 2)
* NOTE: .even is broken on TI tools, so theirs won't align .data
* NOTE: TI defaults text section to DATA until opcodes are seen
* NOTE: GAS will fill a section to its alignment; it should probably not 
* in this case.
	.global even, align2, align8, align128
	.field	2, 3
	.field	11, 8
	.word	0x1, 0x2
	.even	
even	.word	0x3
	.align	2
align2	.string	"abcde"
	.align	8
align8	.word	8
	.word	0,1,2,3,4,5,6,7
	.align
align128 .byte	4
	.word	0,1,2,3,4,5,6,7
* TI .text section total size is 0x89 words; GAS fills to 0xc0
* no, it doesn't fill post 2002-05-23 write.c change since we don't define
# HANDLE_ALIGN or SUB_SEGMENT_ALIGN.
	.data
	.field	2, 3
	.field	11, 8
	.word	0x1, 0x2
	.even
	.word	0x3
	.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.