This is the mail archive of the binutils@sourceware.org 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]

[committed] MIPS/GAS/testsuite: Fix trailing padding in `loc-swap.s'


Pad alignment with zeros rather than NOP instructions, for sensible 
multi-ISA MIPS16 testing.

	gas/
	* testsuite/gas/mips/loc-swap.s: Use zeros rather than NOPs for
	trailing alignment padding.
	* testsuite/gas/mips/loc-swap.d: Adjust accordingly.
	* testsuite/gas/mips/micromips@loc-swap.d: Likewise.
	* testsuite/gas/mips/mips16@loc-swap-dis.d: Likewise.
---
binutils-mips-gas-test-loc-swap-pad.diff
Index: binutils/gas/testsuite/gas/mips/loc-swap.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/loc-swap.d	2016-12-15 20:54:34.915957760 +0000
+++ binutils/gas/testsuite/gas/mips/loc-swap.d	2016-12-16 03:10:21.189883972 +0000
@@ -57,5 +57,5 @@
   \[0x.*\]  Special opcode 7: advance Address by 0 to 0x40 and Line by 2 to 39
   \[0x.*\]  Special opcode 120: advance Address by 8 to 0x48 and Line by 3 to 42
   \[0x.*\]  Special opcode 63: advance Address by 4 to 0x4c and Line by 2 to 44
-  \[0x.*\]  Advance PC by 24 to 0x64
+  \[0x.*\]  Advance PC by 36 to 0x70
   \[0x.*\]  Extended opcode 1: End of Sequence
Index: binutils/gas/testsuite/gas/mips/loc-swap.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/loc-swap.s	2016-12-15 20:54:34.918972843 +0000
+++ binutils/gas/testsuite/gas/mips/loc-swap.s	2016-12-16 03:10:21.210193423 +0000
@@ -44,5 +44,5 @@
 	jal	bar
 
 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
-	.align	2
+	.align	4, 0
 	.space	16
Index: binutils/gas/testsuite/gas/mips/micromips@loc-swap.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/micromips@loc-swap.d	2016-12-15 20:54:34.923030266 +0000
+++ binutils/gas/testsuite/gas/mips/micromips@loc-swap.d	2016-12-16 03:10:21.238510207 +0000
@@ -58,5 +58,5 @@
   \[0x.*\]  Special opcode 35: advance Address by 2 to 0x23 and Line by 2 to 39
   \[0x.*\]  Special opcode 120: advance Address by 8 to 0x2b and Line by 3 to 42
   \[0x.*\]  Special opcode 35: advance Address by 2 to 0x2d and Line by 2 to 44
-  \[0x.*\]  Advance PC by 23 to 0x44
+  \[0x.*\]  Advance PC by 35 to 0x50
   \[0x.*\]  Extended opcode 1: End of Sequence
Index: binutils/gas/testsuite/gas/mips/mips16@loc-swap-dis.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips16@loc-swap-dis.d	2016-12-15 20:54:34.941178750 +0000
+++ binutils/gas/testsuite/gas/mips/mips16@loc-swap-dis.d	2016-12-16 03:10:21.295144200 +0000
@@ -31,5 +31,4 @@
 [0-9a-f]+ <[^>]*> 1800 0000 	jal	0+0000 <foo>
 [ 	]*[0-9a-f]+: R_MIPS16_26	bar
 [0-9a-f]+ <[^>]*> 6500      	nop
-[0-9a-f]+ <[^>]*> 6500      	nop
 	\.\.\.


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