diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/mn10300/basic.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/mn10300/pr997.l | 20 | ||||
-rw-r--r-- | gas/testsuite/gas/mn10300/pr997.s | 5 |
4 files changed, 32 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index c180bea..953f096 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-10-19 Nick Clifton <nickc@redhat.com> + + * gas/mn10300/basic.exp: Run pr997 test. + * gas/mn10300/pr997.s: New test. + * gas/mn10300/pr887.l: Expected output. + 2007-10-17 Nathan Sidwell <nathan@codesourcery.com> * gas/m68k/mcf-movsr.s: New. diff --git a/gas/testsuite/gas/mn10300/basic.exp b/gas/testsuite/gas/mn10300/basic.exp index 9b1b53b..c74fcf6 100644 --- a/gas/testsuite/gas/mn10300/basic.exp +++ b/gas/testsuite/gas/mn10300/basic.exp @@ -1801,6 +1801,7 @@ if [istarget mn10300*-*-*] then { do_am33_8 run_list_test "movpc" "" + run_list_test "pr997" "-a" run_dump_test "am33-2" run_dump_test "relax" diff --git a/gas/testsuite/gas/mn10300/pr997.l b/gas/testsuite/gas/mn10300/pr997.l new file mode 100644 index 0000000..b122095 --- /dev/null +++ b/gas/testsuite/gas/mn10300/pr997.l @@ -0,0 +1,20 @@ +GAS LISTING .*/pr997.s.*page 1 + + + 1.*.data + 2.* + 3 0000 68656C6C.*msg:.*.asciz "hello world.\\n" + 3 6F20776F + 3 726C642E + 3 0A00 + 4.*msglen = .-msg-1 + 5.*msglen=msglen & 0xff + +.*GAS LISTING.*/pr997.s.*page 2 + + +DEFINED SYMBOLS +.*/pr997.s:3.*.data:0+00 msg +.*/pr997.s:4.*\*ABS\*:0+0d msglen + +NO UNDEFINED SYMBOLS diff --git a/gas/testsuite/gas/mn10300/pr997.s b/gas/testsuite/gas/mn10300/pr997.s new file mode 100644 index 0000000..4a54bbc --- /dev/null +++ b/gas/testsuite/gas/mn10300/pr997.s @@ -0,0 +1,5 @@ + .data + +msg: .asciz "hello world.\n" +msglen = .-msg-1 +msglen=msglen & 0xff |