From f87ac266653e6b7358941360a206308497d20939 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 19 Feb 1997 05:57:55 +0000 Subject: [PATCH] * 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. Taken from PR 11715. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/macros/.Sanitize | 2 ++ gas/testsuite/gas/macros/semi.d | 8 ++++++++ gas/testsuite/gas/macros/semi.s | 14 ++++++++++++++ gas/testsuite/gas/mri/.Sanitize | 2 ++ gas/testsuite/gas/mri/semi.d | 9 +++++++++ gas/testsuite/gas/mri/semi.s | 14 ++++++++++++++ 7 files changed, 56 insertions(+) create mode 100644 gas/testsuite/gas/macros/semi.d create mode 100644 gas/testsuite/gas/macros/semi.s create mode 100644 gas/testsuite/gas/mri/semi.d create mode 100644 gas/testsuite/gas/mri/semi.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 829f733b2f6..d4bbddc3f6a 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +Wed Feb 19 00:55:29 1997 Ian Lance Taylor + + * 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 diff --git a/gas/testsuite/gas/macros/.Sanitize b/gas/testsuite/gas/macros/.Sanitize index 17e460e2221..05474b78adf 100644 --- a/gas/testsuite/gas/macros/.Sanitize +++ b/gas/testsuite/gas/macros/.Sanitize @@ -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 index 00000000000..ae89e738592 --- /dev/null +++ b/gas/testsuite/gas/macros/semi.d @@ -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 index 00000000000..cefc209a3b6 --- /dev/null +++ b/gas/testsuite/gas/macros/semi.s @@ -0,0 +1,14 @@ + .macro semicolon + .ascii "; " + .endm + + .macro colon + .ascii ": " + .endm + + semicolon + .ascii "; " + colon + .ascii ": " + + .p2align 5 diff --git a/gas/testsuite/gas/mri/.Sanitize b/gas/testsuite/gas/mri/.Sanitize index 0a105f6c675..eee2c3c458e 100644 --- a/gas/testsuite/gas/mri/.Sanitize +++ b/gas/testsuite/gas/mri/.Sanitize @@ -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 index 00000000000..0decce18472 --- /dev/null +++ b/gas/testsuite/gas/mri/semi.d @@ -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 index 00000000000..5b30677c470 --- /dev/null +++ b/gas/testsuite/gas/mri/semi.s @@ -0,0 +1,14 @@ +semicolon macro + dc.b '; ' + endm + +colon macro + dc.b ': ' + endm + + semicolon + dc.b '; ' + colon + dc.b ': ' + + p2align 5 -- 2.30.2