* gas/macros/and.s: New.
authorAlan Modra <amodra@gmail.com>
Tue, 10 Jun 2003 09:23:47 +0000 (09:23 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Jun 2003 09:23:47 +0000 (09:23 +0000)
* gas/macros/macros.exp: Assemble it.

gas/testsuite/ChangeLog
gas/testsuite/gas/macros/and.s [new file with mode: 0644]
gas/testsuite/gas/macros/macros.exp

index 4688b000ff97d88c4ab3e06b4471ed5143509260..57e85607c6d707cc7592d1e04018ee9c802cbc9b 100644 (file)
@@ -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 (file)
index 0000000..98f0cec
--- /dev/null
@@ -0,0 +1,9 @@
+       .set    TFLAG_C, 1
+
+       .macro  check
+       .if     (0 & TFLAG_C)
+       .endif
+       .endm
+
+       .text
+       check
index 806de3ad405744c75ff683c65f25294fb16a8692..19568d90120b1fa2816007501d7920fa1a28de9e 100644 (file)
@@ -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*-*-* } { }
This page took 0.026391 seconds and 4 git commands to generate.