]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/
authorCarlos O'Donell <carlos@codesourcery.com>
Mon, 24 Sep 2007 22:08:21 +0000 (22:08 +0000)
committerCarlos O'Donell <carlos@codesourcery.com>
Mon, 24 Sep 2007 22:08:21 +0000 (22:08 +0000)
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.

gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/align.d [new file with mode: 0644]
gas/testsuite/gas/mips/align.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp

index a5e79913550bf2a3e632205e0499e80fc81cfb4d..fcf45f1dc7cf6050f3030c0a68c867abde25a1ae 100644 (file)
@@ -1,3 +1,7 @@
+2007-09-24  Carlos O'Donell  <carlos@codesourcery.com>
+
+       * config/tc-mips.c (s_align): Set max_alignment to 28.
+       
 2007-09-20  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR 658
index 8c071fb2ef4d69f2386e0e81473607ec56201ab4..be50025ab128fc4cc9f470d7efd33196cfc97e77 100644 (file)
@@ -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.
index 37f054c49e947916c91f1d4aa985cfbbc78367f5..f63e00abe9a7d8f8e28e4e53f16adecd83cda4f4 100644 (file)
@@ -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 (file)
index 0000000..dc2c012
--- /dev/null
@@ -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 (file)
index 0000000..5ec21ed
--- /dev/null
@@ -0,0 +1,7 @@
+# Test file used to verify maximum alignment value.
+foo:
+       nop
+
+       .align 28
+bar:
+       nop
index 523a7738242a14b1a9d50d8427cf0e996be77720..92abf32b6e79165cda16d278e0352a8fb7fb2f2e 100644 (file)
@@ -774,4 +774,5 @@ if { [istarget mips*-*-vxworks*] } {
     run_dump_test "vxworks1-xgot-el"
 
     run_dump_test "noreorder"
+    run_dump_test "align"
 }