diff options
author | Alan Modra <amodra@gmail.com> | 2003-06-10 09:23:47 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-06-10 09:23:47 +0000 |
commit | 405525ece7d67e69f3f9ca0c40b92a4632276aa7 (patch) | |
tree | ac3505fb0542373a4ff82fa456c11a4e13a3b821 /gas | |
parent | d1b2d571cc51e05ca4ccaa32644be505d7b34e23 (diff) | |
download | gdb-405525ece7d67e69f3f9ca0c40b92a4632276aa7.zip gdb-405525ece7d67e69f3f9ca0c40b92a4632276aa7.tar.gz gdb-405525ece7d67e69f3f9ca0c40b92a4632276aa7.tar.bz2 |
* gas/macros/and.s: New.
* gas/macros/macros.exp: Assemble it.
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*-*-* } { } |