This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[applied mips patch] fix relax-swapN tests


i just ran the binutils tests on targets:

        mips-elf mips-linux mips-netbsd mips64-elf mips64-linux
        mipsisa32-elf mipsisa32r2-elf mipsisa64-elf mipsisa64r2-elf
        mipsisa64sb1-elf

On some of them, the relax-swap[12]* tests failed due to problems of
alignment and padding after the last label in the tests.

Committed as obvious.


chris
--
2004-01-24  Chris Demetriou  <cgd@broadcom.com>

	* gas/mips/relax-swap1.s: Add extra space at end, so the
	disassembly will consistently have "..." at its end.
	* gas/mips/relax-swap2.s: Likewise.
	* gas/mips/relax-swap1-mips2.d: Expect "..." at end of disassembly.

Index: gas/mips/relax-swap1-mips2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/relax-swap1-mips2.d,v
retrieving revision 1.1
diff -u -p -r1.1 relax-swap1-mips2.d
--- gas/mips/relax-swap1-mips2.d	14 Jan 2004 18:01:09 -0000	1.1
+++ gas/mips/relax-swap1-mips2.d	25 Jan 2004 02:58:04 -0000
@@ -277,4 +277,4 @@ Disassembly of section \.text:
 0+0364 <[^>]*> jalr	v0,v1
 0+0368 <[^>]*> nop
 	\.\.\.
-0+2036c <[^>]*> nop
+	\.\.\.
Index: gas/mips/relax-swap1.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/relax-swap1.s,v
retrieving revision 1.1
diff -u -p -r1.1 relax-swap1.s
--- gas/mips/relax-swap1.s	14 Jan 2004 18:01:09 -0000	1.1
+++ gas/mips/relax-swap1.s	25 Jan 2004 02:58:04 -0000
@@ -147,3 +147,5 @@ foo:
 
         .space  0x20000         # to make a 128kb loop body
 bar:
+# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+        .space  8
Index: gas/mips/relax-swap2.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/relax-swap2.s,v
retrieving revision 1.1
diff -u -p -r1.1 relax-swap2.s
--- gas/mips/relax-swap2.s	14 Jan 2004 18:01:09 -0000	1.1
+++ gas/mips/relax-swap2.s	25 Jan 2004 02:58:04 -0000
@@ -46,3 +46,5 @@ foo:
 
         .space  0x20000         # to make a 128kb loop body
 bar:
+# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+        .space  8


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]