From 405525ece7d67e69f3f9ca0c40b92a4632276aa7 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 10 Jun 2003 09:23:47 +0000 Subject: [PATCH] * gas/macros/and.s: New. * gas/macros/macros.exp: Assemble it. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/macros/and.s | 9 +++++++++ gas/testsuite/gas/macros/macros.exp | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 gas/testsuite/gas/macros/and.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 4688b000ff..57e85607c6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-06-10 Alan Modra + + * gas/macros/and.s: New. + * gas/macros/macros.exp: Assemble it. + 2003-06-10 Gary Hade * 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 0000000000..98f0cec655 --- /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 806de3ad40..19568d9012 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*-*-* } { } -- 2.34.1