Initial revision
[binutils.git] / gas / testsuite / gas / hppa / parse / labelbug.s
blob3f36a71f7ebb7ef6285a2928740ad9b60664ab34
1 .SPACE $PRIVATE$
2 .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
3 .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
4 .SPACE $TEXT$, SORT=8
5 .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
6 .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
8 .SPACE $TEXT$
9 .SUBSPA $CODE$
11 .align 4
12 ; A comment. This should not be interpreted as a label, but both of the
13 ; following statements should.
14 label_without_colon
15 label_with_colon:
17 ; A problem tege found...
18 ; Input scrubbing in gas makes life a real nightmare for assemblers
19 ; in which the *position* within a line determines how to interpret
20 ; a stream a characters. These test one particular case where gas
21 ; had the tendency to delete the whitespace between the opcode and
22 ; operands if a label without a colon began a line, and the operands
23 ; started with a non-numeric character.
24 L$1 add %r2,%r2,%r2
25 L$2: add %r2,%r2,%r2
26 L$3
27 add %r2,%r2,%r2
29 L$4 add %r2,%r2,%r2
30 L$5: add %r2,%r2,%r2
31 L$6
32 add %r2,%r2,%r2
34 ; An instruction or pseudo-op may begin anywhere after column 0.
35 b,n label_without_colon