Upload Tizen:Base source
[external/binutils.git] / gas / testsuite / gas / hppa / parse / labelbug.s
1         .code
2
3         .align 4
4 ; A comment.  This should not be interpreted as a label, but both of the
5 ; following statements should.
6 label_without_colon
7 label_with_colon:
8
9 ; A problem tege found...
10 ; Input scrubbing in gas makes life a real nightmare for assemblers
11 ; in which the *position* within a line determines how to interpret
12 ; a stream a characters.  These test one particular case where gas
13 ; had the tendency to delete the whitespace between the opcode and
14 ; operands if a label without a colon began a line, and the operands
15 ; started with a non-numeric character.
16 L$1     add %r2,%r2,%r2
17 L$2:    add %r2,%r2,%r2
18 L$3
19         add %r2,%r2,%r2
20
21 L$4     add %r2,%r2,%r2
22 L$5:    add %r2,%r2,%r2
23 L$6
24         add %r2,%r2,%r2
25
26 ; An instruction or pseudo-op may begin anywhere after column 0.
27  b,n label_without_colon