diff options
author | Carlos O'Donell <carlos@codesourcery.com> | 2007-09-24 22:08:21 +0000 |
---|---|---|
committer | Carlos O'Donell <carlos@codesourcery.com> | 2007-09-24 22:08:21 +0000 |
commit | 49954fb49f3545630fe62ad13c8faca9ed2b33a9 (patch) | |
tree | 2ca3035125ab73c21299a5fb7a05faf6446e3ca1 /gas/testsuite | |
parent | 28c32713ac37a0123d8397527e5fe9cc2d108f1a (diff) | |
download | ppe42-binutils-49954fb49f3545630fe62ad13c8faca9ed2b33a9.tar.gz ppe42-binutils-49954fb49f3545630fe62ad13c8faca9ed2b33a9.zip |
gas/
2007-09-24 Carlos O'Donell <carlos@codesourcery.com>
* config/tc-mips.c (s_align): Set max_alignment to 28.
gas/testsuite/
2007-09-24 Carlos O'Donell <carlos@codesourcery.com>
* gas/mips/align.s, gas/mips/align.d: New test.
* gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/align.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/align.s | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 1 |
4 files changed, 27 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 37f054c49e..f63e00abe9 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-09-24 Carlos O'Donell <carlos@codesourcery.com> + + * gas/mips/align.s, gas/mips/align.d: New test. + * gas/mips/mips.exp: Run it. + 2007-09-20 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/sib.s: Add more eiz tests. diff --git a/gas/testsuite/gas/mips/align.d b/gas/testsuite/gas/mips/align.d new file mode 100644 index 0000000000..dc2c01217d --- /dev/null +++ b/gas/testsuite/gas/mips/align.d @@ -0,0 +1,14 @@ +#objdump: -dr +#name: MIPS align maximum + +# Test the align macro at maximum alignment. + +.*: +file format .*mips.* + +Disassembly of section .text: + +[0]*00000000 <foo>: + ... + +[0]*10000000 <bar>: + ... diff --git a/gas/testsuite/gas/mips/align.s b/gas/testsuite/gas/mips/align.s new file mode 100644 index 0000000000..5ec21ed27f --- /dev/null +++ b/gas/testsuite/gas/mips/align.s @@ -0,0 +1,7 @@ +# Test file used to verify maximum alignment value. +foo: + nop + + .align 28 +bar: + nop diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 523a773824..92abf32b6e 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -774,4 +774,5 @@ if { [istarget mips*-*-vxworks*] } { run_dump_test "vxworks1-xgot-el" run_dump_test "noreorder" + run_dump_test "align" } |