mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
* gas/hppa/more.parse/labelbug.s: New test.
* gas/hppa/more.parse/parse.exp: Run it.
This commit is contained in:
@ -37,6 +37,7 @@ exportbug.s
|
|||||||
exprbug.s
|
exprbug.s
|
||||||
fixup7bug.s
|
fixup7bug.s
|
||||||
global.s
|
global.s
|
||||||
|
labelbug.s
|
||||||
linesepbug.s
|
linesepbug.s
|
||||||
lselbug.s
|
lselbug.s
|
||||||
nosubspace.s
|
nosubspace.s
|
||||||
|
18
gas/testsuite/gas/hppa/more.parse/labelbug.s
Normal file
18
gas/testsuite/gas/hppa/more.parse/labelbug.s
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
.SPACE $PRIVATE$
|
||||||
|
.SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
|
||||||
|
.SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
|
||||||
|
.SPACE $TEXT$
|
||||||
|
.SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
|
||||||
|
.SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
|
||||||
|
|
||||||
|
.SPACE $TEXT$
|
||||||
|
.SUBSPA $CODE$
|
||||||
|
|
||||||
|
.align 4
|
||||||
|
; A comment. This should not be interpreted as a label, but both of the
|
||||||
|
; following statements should.
|
||||||
|
label_without_colon
|
||||||
|
label_with_colon:
|
||||||
|
|
||||||
|
; An instruction or pseudo-op may begin anywhere after column 0.
|
||||||
|
b,n label_without_colon
|
@ -197,5 +197,8 @@ if [istarget hppa*-*-*] then {
|
|||||||
# Make sure GAS understands a reasonable set of standard predefined
|
# Make sure GAS understands a reasonable set of standard predefined
|
||||||
# registers. eg %rp, %dp, %sp, etc.
|
# registers. eg %rp, %dp, %sp, etc.
|
||||||
gas_test "stdreg.s" "" "" "Test standard predefined registers"
|
gas_test "stdreg.s" "" "" "Test standard predefined registers"
|
||||||
|
|
||||||
|
# Make sure GAS will accept a label without a colon.
|
||||||
|
gas_test "labelbug.s" "" "" "Test label without colon"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ exportbug.s
|
|||||||
exprbug.s
|
exprbug.s
|
||||||
fixup7bug.s
|
fixup7bug.s
|
||||||
global.s
|
global.s
|
||||||
|
labelbug.s
|
||||||
linesepbug.s
|
linesepbug.s
|
||||||
lselbug.s
|
lselbug.s
|
||||||
nosubspace.s
|
nosubspace.s
|
||||||
|
18
gas/testsuite/gas/hppa/parse/labelbug.s
Normal file
18
gas/testsuite/gas/hppa/parse/labelbug.s
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
.SPACE $PRIVATE$
|
||||||
|
.SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
|
||||||
|
.SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
|
||||||
|
.SPACE $TEXT$
|
||||||
|
.SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
|
||||||
|
.SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
|
||||||
|
|
||||||
|
.SPACE $TEXT$
|
||||||
|
.SUBSPA $CODE$
|
||||||
|
|
||||||
|
.align 4
|
||||||
|
; A comment. This should not be interpreted as a label, but both of the
|
||||||
|
; following statements should.
|
||||||
|
label_without_colon
|
||||||
|
label_with_colon:
|
||||||
|
|
||||||
|
; An instruction or pseudo-op may begin anywhere after column 0.
|
||||||
|
b,n label_without_colon
|
@ -197,5 +197,8 @@ if [istarget hppa*-*-*] then {
|
|||||||
# Make sure GAS understands a reasonable set of standard predefined
|
# Make sure GAS understands a reasonable set of standard predefined
|
||||||
# registers. eg %rp, %dp, %sp, etc.
|
# registers. eg %rp, %dp, %sp, etc.
|
||||||
gas_test "stdreg.s" "" "" "Test standard predefined registers"
|
gas_test "stdreg.s" "" "" "Test standard predefined registers"
|
||||||
|
|
||||||
|
# Make sure GAS will accept a label without a colon.
|
||||||
|
gas_test "labelbug.s" "" "" "Test label without colon"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user