diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/macros/and.s | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/macros/macros.exp | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 4688b00..57e8560 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-06-10 Alan Modra <amodra@bigpond.net.au> + + * gas/macros/and.s: New. + * gas/macros/macros.exp: Assemble it. + 2003-06-10 Gary Hade <garyhade@us.ibm.com> * gas/ppc/test2elf64.{s,d}: New test. diff --git a/gas/testsuite/gas/macros/and.s b/gas/testsuite/gas/macros/and.s new file mode 100644 index 0000000..98f0cec --- /dev/null +++ b/gas/testsuite/gas/macros/and.s @@ -0,0 +1,9 @@ + .set TFLAG_C, 1 + + .macro check + .if (0 & TFLAG_C) + .endif + .endm + + .text + check diff --git a/gas/testsuite/gas/macros/macros.exp b/gas/testsuite/gas/macros/macros.exp index 806de3a..19568d9 100644 --- a/gas/testsuite/gas/macros/macros.exp +++ b/gas/testsuite/gas/macros/macros.exp @@ -18,6 +18,8 @@ if { ![istarget *c54x*-*-*] && ![istarget *c4x*-*-*] } { 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*-*-* } { } |