aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-12-20 02:10:40 +0000
committerMaciej W. Rozycki <macro@imgtec.com>2016-12-20 11:58:56 +0000
commit23c212516e3a91c74548ceccb597bdeaeb111e26 (patch)
tree969fa3b6e2c567d61a4639af0446381c6f73438d /gas/testsuite
parent7fd5392005624f8b0522d881aa94bbb470d68cd7 (diff)
downloadgdb-23c212516e3a91c74548ceccb597bdeaeb111e26.zip
gdb-23c212516e3a91c74548ceccb597bdeaeb111e26.tar.gz
gdb-23c212516e3a91c74548ceccb597bdeaeb111e26.tar.bz2
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.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/mips/loc-swap.d2
-rw-r--r--gas/testsuite/gas/mips/loc-swap.s2
-rw-r--r--gas/testsuite/gas/mips/micromips@loc-swap.d2
-rw-r--r--gas/testsuite/gas/mips/mips16@loc-swap-dis.d1
4 files changed, 3 insertions, 4 deletions
diff --git a/gas/testsuite/gas/mips/loc-swap.d b/gas/testsuite/gas/mips/loc-swap.d
index c4b91ed..4e11106 100644
--- a/gas/testsuite/gas/mips/loc-swap.d
+++ b/gas/testsuite/gas/mips/loc-swap.d
@@ -57,5 +57,5 @@ Raw dump of debug contents of section \.debug_line:
\[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
diff --git a/gas/testsuite/gas/mips/loc-swap.s b/gas/testsuite/gas/mips/loc-swap.s
index a70acf2..c51b68a 100644
--- a/gas/testsuite/gas/mips/loc-swap.s
+++ b/gas/testsuite/gas/mips/loc-swap.s
@@ -44,5 +44,5 @@ foo:
jal bar
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 2
+ .align 4, 0
.space 16
diff --git a/gas/testsuite/gas/mips/micromips@loc-swap.d b/gas/testsuite/gas/mips/micromips@loc-swap.d
index 1a4765e..23aedae 100644
--- a/gas/testsuite/gas/mips/micromips@loc-swap.d
+++ b/gas/testsuite/gas/mips/micromips@loc-swap.d
@@ -58,5 +58,5 @@ Raw dump of debug contents of section \.debug_line:
\[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
diff --git a/gas/testsuite/gas/mips/mips16@loc-swap-dis.d b/gas/testsuite/gas/mips/mips16@loc-swap-dis.d
index fd698ea..eb1831c 100644
--- a/gas/testsuite/gas/mips/mips16@loc-swap-dis.d
+++ b/gas/testsuite/gas/mips/mips16@loc-swap-dis.d
@@ -31,5 +31,4 @@ Disassembly of section \.text:
[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
\.\.\.