mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Move assembler "IRP \+" test into a separate file. Add XFAILs for targets that do not support it.
This commit is contained in:
parent
7e544ad81a
commit
e9ee1927d1
@ -1,3 +1,4 @@
|
||||
#...
|
||||
0
|
||||
0
|
||||
1
|
||||
@ -8,5 +9,3 @@
|
||||
1
|
||||
4
|
||||
2
|
||||
\+
|
||||
\+
|
||||
|
@ -17,10 +17,3 @@
|
||||
|
||||
mac1 2
|
||||
mac2 3
|
||||
|
||||
.irp i,1
|
||||
.print "\+"
|
||||
.endr
|
||||
.irpc i,1
|
||||
.print "\+"
|
||||
.endr
|
||||
|
2
gas/testsuite/gas/macros/irp-count.d
Normal file
2
gas/testsuite/gas/macros/irp-count.d
Normal file
@ -0,0 +1,2 @@
|
||||
#name: Macro counters inside IRP commands (irp-count.d)
|
||||
# Tests that \+ does not trip up IRP commands
|
3
gas/testsuite/gas/macros/irp-count.l
Normal file
3
gas/testsuite/gas/macros/irp-count.l
Normal file
@ -0,0 +1,3 @@
|
||||
#...
|
||||
\+
|
||||
\+
|
7
gas/testsuite/gas/macros/irp-count.s
Normal file
7
gas/testsuite/gas/macros/irp-count.s
Normal file
@ -0,0 +1,7 @@
|
||||
.irp i,1
|
||||
.print "\+"
|
||||
.endr
|
||||
|
||||
.irpc i,1
|
||||
.print "\+"
|
||||
.endr
|
@ -103,3 +103,9 @@ gas_test_error "exit.s" "" ".exitm outside of a macro"
|
||||
|
||||
run_list_test altmacro
|
||||
run_list_test count
|
||||
|
||||
# The AVR, CRIS, MSP430 and Z80 targets define ONLY_STANDARD_ESCAPES,
|
||||
# so \+ is rejected.
|
||||
# AIX targets need an extended regexp to match "\+".
|
||||
setup_xfail "avr-*-*" "cris*-*-*" "msp430-*-*" "z80-*-*" "*-*-aix*"
|
||||
run_list_test irp-count
|
||||
|
Loading…
Reference in New Issue
Block a user