mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 14:03:56 +08:00
* gas/macros/app1.s, gas/macros/app1.d, gas/macros/app2.s,
gas/macros/app2.d, gas/macros/app3.s, gas/macros/app3.d, gas/macros/app4.s, gas/macros/app4b.s, gas/macros/app4.d: New tests. * gas/macros/macros.exp: Run them.
This commit is contained in:
parent
64e55042d6
commit
fdf63afff5
@ -1,3 +1,11 @@
|
||||
2003-05-13 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* gas/macros/app1.s, gas/macros/app1.d, gas/macros/app2.s,
|
||||
gas/macros/app2.d, gas/macros/app3.s, gas/macros/app3.d,
|
||||
gas/macros/app4.s, gas/macros/app4b.s, gas/macros/app4.d: New
|
||||
tests.
|
||||
* gas/macros/macros.exp: Run them.
|
||||
|
||||
2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* gas/ia64/ia64.exp: Add alias.
|
||||
|
4
gas/testsuite/gas/macros/app1.d
Normal file
4
gas/testsuite/gas/macros/app1.d
Normal file
@ -0,0 +1,4 @@
|
||||
#nm: -n
|
||||
#name: APP with macro without NO_APP
|
||||
0+ t a
|
||||
0+[1-f] t b
|
10
gas/testsuite/gas/macros/app1.s
Normal file
10
gas/testsuite/gas/macros/app1.s
Normal file
@ -0,0 +1,10 @@
|
||||
#NO_APP
|
||||
.text
|
||||
.macro foo
|
||||
a:
|
||||
.long 42
|
||||
.endm
|
||||
#APP
|
||||
foo
|
||||
b:
|
||||
.long 56
|
4
gas/testsuite/gas/macros/app2.d
Normal file
4
gas/testsuite/gas/macros/app2.d
Normal file
@ -0,0 +1,4 @@
|
||||
#nm: -n
|
||||
#name: APP with macro then NO_APP
|
||||
0+ t a
|
||||
0+[1-f] t b
|
11
gas/testsuite/gas/macros/app2.s
Normal file
11
gas/testsuite/gas/macros/app2.s
Normal file
@ -0,0 +1,11 @@
|
||||
#NO_APP
|
||||
.text
|
||||
.macro foo
|
||||
a:
|
||||
.long 42
|
||||
.endm
|
||||
#APP
|
||||
foo
|
||||
b:
|
||||
.long 56
|
||||
#NO_APP
|
5
gas/testsuite/gas/macros/app3.d
Normal file
5
gas/testsuite/gas/macros/app3.d
Normal file
@ -0,0 +1,5 @@
|
||||
#nm: -n
|
||||
#name: APP with macro then NO_APP then more code
|
||||
0+ t a
|
||||
0+[1-f] t b
|
||||
0+[2-f] t c
|
13
gas/testsuite/gas/macros/app3.s
Normal file
13
gas/testsuite/gas/macros/app3.s
Normal file
@ -0,0 +1,13 @@
|
||||
#NO_APP
|
||||
.text
|
||||
.macro foo
|
||||
a:
|
||||
.long 42
|
||||
.endm
|
||||
#APP
|
||||
foo
|
||||
b:
|
||||
.long 56
|
||||
#NO_APP
|
||||
c:
|
||||
.long 78
|
6
gas/testsuite/gas/macros/app4.d
Normal file
6
gas/testsuite/gas/macros/app4.d
Normal file
@ -0,0 +1,6 @@
|
||||
#as: -I$srcdir/$subdir
|
||||
#nm: -n
|
||||
#name: included file with .if 0 wrapped in APP/NO_APP, no final NO_APP, macro in main file
|
||||
0+ t d
|
||||
0+[1-f] t a
|
||||
0+[2-f] t b
|
9
gas/testsuite/gas/macros/app4.s
Normal file
9
gas/testsuite/gas/macros/app4.s
Normal file
@ -0,0 +1,9 @@
|
||||
.text
|
||||
.macro foo
|
||||
a:
|
||||
.long 42
|
||||
.endm
|
||||
.include "app4b.s"
|
||||
foo
|
||||
b:
|
||||
.long 56
|
10
gas/testsuite/gas/macros/app4b.s
Normal file
10
gas/testsuite/gas/macros/app4b.s
Normal file
@ -0,0 +1,10 @@
|
||||
#NO_APP
|
||||
d:
|
||||
.long 21
|
||||
#APP
|
||||
.if 0
|
||||
#NO_APP
|
||||
.err
|
||||
x:
|
||||
#APP
|
||||
.endif
|
@ -40,3 +40,8 @@ if { ![istarget hppa*-*-*] || [istarget *-*-linux*] } {
|
||||
setup_xfail "*c4x*-*-*" "*c54x*-*"
|
||||
run_dump_test strings
|
||||
}
|
||||
|
||||
run_dump_test app1
|
||||
run_dump_test app2
|
||||
run_dump_test app3
|
||||
run_dump_test app4
|
||||
|
Loading…
Reference in New Issue
Block a user