From: Carlos O'Donell Date: Mon, 24 Sep 2007 22:08:21 +0000 (+0000) Subject: gas/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49954fb49f3545630fe62ad13c8faca9ed2b33a9;p=binutils-gdb.git gas/ 2007-09-24 Carlos O'Donell * config/tc-mips.c (s_align): Set max_alignment to 28. gas/testsuite/ 2007-09-24 Carlos O'Donell * gas/mips/align.s, gas/mips/align.d: New test. * gas/mips/mips.exp: Run it. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a5e79913550..fcf45f1dc7c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2007-09-24 Carlos O'Donell + + * config/tc-mips.c (s_align): Set max_alignment to 28. + 2007-09-20 H.J. Lu PR 658 diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 8c071fb2ef4..be50025ab12 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -12047,7 +12047,7 @@ s_align (int x ATTRIBUTE_UNUSED) { int temp; long temp_fill; - long max_alignment = 15; + long max_alignment = 28; /* o Note that the assembler pulls down any immediately preceding label to the aligned address. diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 37f054c49e9..f63e00abe9a 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-09-24 Carlos O'Donell + + * gas/mips/align.s, gas/mips/align.d: New test. + * gas/mips/mips.exp: Run it. + 2007-09-20 H.J. Lu * 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 00000000000..dc2c01217d2 --- /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 : + ... + +[0]*10000000 : + ... diff --git a/gas/testsuite/gas/mips/align.s b/gas/testsuite/gas/mips/align.s new file mode 100644 index 00000000000..5ec21ed27f9 --- /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 523a7738242..92abf32b6e7 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" }