Add test of macro expansion of string arguments.
authorNick Clifton <nickc@redhat.com>
Tue, 13 Jun 2000 21:23:28 +0000 (21:23 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 13 Jun 2000 21:23:28 +0000 (21:23 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/arm.exp
gas/testsuite/gas/macros/macros.exp
gas/testsuite/gas/macros/strings.d [new file with mode: 0644]
gas/testsuite/gas/macros/strings.s [new file with mode: 0644]

index 9f702bb38ae0dd242671e7857edcbe163f6e1988..79c29b2a181c7526f69748169eb936b1c419f951 100644 (file)
@@ -1,3 +1,10 @@
+2000-06-09  Nick Clifton  <nickc@cygnus.com>
+
+       * gas/macros/macros.exp: Run new test: strings.
+       * gas/macros/strings.s: New test: String expansion inside
+       macros.
+       * gas/macros/strings.d: New test results.
+       
 2000-06-04  Alan Modra  <alan@linuxcare.com.au>
 
        * gas/i386/prefix.s: Modify so we have at least one x86 test that
index f21c54df31058894cca18581d4046eb34e658446..d658eebceed0dfe9f76fbd55c9e15b2799dacee1 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Some ARM tests
 #
-if [istarget arm-*-*] then {
+if [istarget *arm*-*-*] then {
     run_dump_test "inst"
 
     gas_test "arm3.s" "" $stdoptlist "Arm 3 instructions"
index a51e4859867e2d537a617a8c59438a3031a2a64b..f75df40e78c799d7735bb445d6f5ca943e95a124 100644 (file)
@@ -20,3 +20,5 @@ case $target_triplet in {
        run_dump_test semi
     }
 }
+
+run_dump_test strings
diff --git a/gas/testsuite/gas/macros/strings.d b/gas/testsuite/gas/macros/strings.d
new file mode 100644 (file)
index 0000000..546ff0f
--- /dev/null
@@ -0,0 +1,8 @@
+#objdump: -s -j .data
+#name: strings
+
+.*: .*
+
+Contents of section .data:
+ 0000 5c22666f 6f5c2200 62617200 62617a    \\\"foo\\\".bar.baz 
+
diff --git a/gas/testsuite/gas/macros/strings.s b/gas/testsuite/gas/macros/strings.s
new file mode 100644 (file)
index 0000000..88b2377
--- /dev/null
@@ -0,0 +1,17 @@
+.macro M arg1
+       .ascii  "\arg1"
+.endm
+
+       .data
+foo:
+       M "\\\"foo\\\""
+
+       .balign 2
+
+       M "bar"
+
+       .balign 2
+
+       M baz
+
+