* gas/macros/semi.s, gas/macros/semi.d: New test.
authorIan Lance Taylor <ian@airs.com>
Wed, 19 Feb 1997 05:57:55 +0000 (05:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 19 Feb 1997 05:57:55 +0000 (05:57 +0000)
* gas/macros/macros.exp: Run it.
* gas/mri/semi.s, gas/mri/semi.d: New test.
* gas/mri/mri.exp: Run it.
Taken from PR 11715.

gas/testsuite/ChangeLog
gas/testsuite/gas/macros/.Sanitize
gas/testsuite/gas/macros/semi.d [new file with mode: 0644]
gas/testsuite/gas/macros/semi.s [new file with mode: 0644]
gas/testsuite/gas/mri/.Sanitize
gas/testsuite/gas/mri/semi.d [new file with mode: 0644]
gas/testsuite/gas/mri/semi.s [new file with mode: 0644]

index 829f733..d4bbddc 100644 (file)
@@ -1,3 +1,10 @@
+Wed Feb 19 00:55:29 1997  Ian Lance Taylor  <ian@cygnus.com>
+
+       * gas/macros/semi.s, gas/macros/semi.d: New test.
+       * gas/macros/macros.exp: Run it.
+       * gas/mri/semi.s, gas/mri/semi.d: New test.
+       * gas/mri/mri.exp: Run it.
+
 Tue Feb 18 13:37:06 1997  Jeffrey A Law  (law@cygnus.com)
 
        * gas/hppa/unsorted/unsorted.exp (align4 tests): Tweak expected
index 17e460e..05474b7 100644 (file)
@@ -31,6 +31,8 @@ irp.s
 macros.exp
 rept.d
 rept.s
+semi.d
+semi.s
 test1.d
 test1.s
 test2.d
diff --git a/gas/testsuite/gas/macros/semi.d b/gas/testsuite/gas/macros/semi.d
new file mode 100644 (file)
index 0000000..ae89e73
--- /dev/null
@@ -0,0 +1,8 @@
+#objdump: -s -j .text
+#name: semi
+
+.*: .*
+
+Contents of section .text:
+ 0000 3b203b20 3a203a20 00000000 00000000  ; ; : : ........
+ 0010 00000000 00000000 00000000 00000000  ................
diff --git a/gas/testsuite/gas/macros/semi.s b/gas/testsuite/gas/macros/semi.s
new file mode 100644 (file)
index 0000000..cefc209
--- /dev/null
@@ -0,0 +1,14 @@
+        .macro semicolon
+        .ascii "; "
+        .endm
+
+        .macro colon
+        .ascii ": "
+        .endm
+
+        semicolon
+        .ascii "; "
+        colon
+        .ascii ": "
+
+       .p2align 5
index 0a105f6..eee2c3c 100644 (file)
@@ -49,6 +49,8 @@ label.s
 mri.exp
 repeat.d
 repeat.s
+semi.d
+semi.s
 while.d
 while.s
 
diff --git a/gas/testsuite/gas/mri/semi.d b/gas/testsuite/gas/mri/semi.d
new file mode 100644 (file)
index 0000000..0decce1
--- /dev/null
@@ -0,0 +1,9 @@
+#objdump: -s -j .text
+#name: MRI semi
+#as: -M
+
+.*: .*
+
+Contents of section .text:
+ 0000 3b203b20 3a203a20 00000000 00000000  ; ; : : ........
+ 0010 00000000 00000000 00000000 00000000  ................
diff --git a/gas/testsuite/gas/mri/semi.s b/gas/testsuite/gas/mri/semi.s
new file mode 100644 (file)
index 0000000..5b30677
--- /dev/null
@@ -0,0 +1,14 @@
+semicolon  macro
+       dc.b    '; '
+       endm
+
+colon      macro
+       dc.b    ': '
+       endm
+
+       semicolon
+       dc.b    '; '
+       colon
+       dc.b    ': '
+
+       p2align 5