GNU AS bug?
Alan Modra
amodra@bigpond.net.au
Tue Jun 10 09:22:00 GMT 2003
On Thu, Jun 05, 2003 at 11:08:28AM +1000, Ben Elliston wrote:
> Alan Modra <amodra@bigpond.net.au> writes:
> > Fixed with this patch.
>
> How about a regression test case, Alan?
Hey, I thought you maintained the test suite?
gas/testsuite/ChangeLog
* gas/macros/and.s: New.
* gas/macros/macros.exp: Assemble it.
Index: gas/testsuite/gas/macros/and.s
===================================================================
RCS file: gas/testsuite/gas/macros/and.s
diff -N gas/testsuite/gas/macros/and.s
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gas/testsuite/gas/macros/and.s 10 Jun 2003 09:19:20 -0000
@@ -0,0 +1,9 @@
+ .set TFLAG_C, 1
+
+ .macro check
+ .if (0 & TFLAG_C)
+ .endif
+ .endm
+
+ .text
+ check
Index: gas/testsuite/gas/macros/macros.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/macros/macros.exp,v
retrieving revision 1.14
diff -u -p -r1.14 macros.exp
--- gas/testsuite/gas/macros/macros.exp 13 May 2003 01:57:10 -0000 1.14
+++ gas/testsuite/gas/macros/macros.exp 10 Jun 2003 09:16:22 -0000
@@ -18,6 +18,8 @@ if { ![istarget *c54x*-*-*] && ![istarge
gas_test_error "err.s" "" "macro infinite recursion"
+gas_test "and.s" "" "" "logical and in macro definition"
+
case $target_triplet in {
{ hppa*-*-* } { if [istarget *-*-linux*] { run_dump_test semi } }
{ *c4x*-*-* } { }
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list