Initial revision
[binutils.git] / gas / testsuite / gas / tic80 / align.s
blob02c1256f50c1cd2a5e5f8944d9351e8ae953952f
1 ;; Test the .align directive.
3 .text
5 ;; This should generate 0xAB000000
6 .byte 0xAB
7 .align ; Should default to 4 byte alignment
9 ;; This should generate 0xCD00EF00
10 .byte 0xCD
11 .align 2 ; Should align to the next 2-byte boundary (pad with one null byte)
12 .byte 0xEF
13 .align 1
15 ;; This should generate 0xF1000000
16 .align 4 ; Should not affect alignment (already on 4)
17 .byte 0xF1
18 .align 4 ; Should align to next 4 byte boundary
20 ;; This should generate 0xEE000000 since we are already on 4 byte alignment
21 .byte 0xEE
22 .align 8
24 ;; This should generate 0xAC000000 0x00000000
25 .byte 0xAC
26 .align 8
28 ;; This should generate 0xAB000000 0x00000000 since we are at 8 byte alignment
29 .byte 0xAB
30 .align 16
32 ;; This should generate 0xFE000000 0x00000000 0x00000000 0x00000000
33 .byte 0xFE
34 .align 16
36 ;; This just forces the disassembler to not print ... for trailing nulls
37 .byte 0xDE, 0xAD, 0xBE, 0xEF