From 9bb28706c4945adade7aa8c1e43e54522df58099 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Tue, 23 Oct 2001 19:20:28 +0000 Subject: [opcodes/ChangeLog] 2001-10-21 Chris Demetriou * mips-opc.c (mips_builtin_opcodes): Mark "bgezall" and "bltzall" as writing GPR 31 (since they do). * mips-dis.c (print_insn_arg): Calculate info->target where appropriate. (print_insn_mips): Fill in instruction info. (print_mips16_insn_arg): Remove unneded variable 'val'. Removed duplicated instruction target calculations, calculate once and print that result. Use same idiom for masking the jump segment bits as is used in print_insn_arg. [gas/testsuite/ChangeLog] 2001-10-21 Chris Demetriou * gas/mips/beq.s: Add zero words at end of instructions so that objdump will print "..." when disassembling. * gas/mips/beq.d: Update for disassembler changes which force branch delay-slot nops to be printed. * gas/mips/bge.d: Ditto. * gas/mips/bgeu.d: Ditto. * gas/mips/blt.d: Ditto. * gas/mips/bltu.d: Ditto. * gas/mips/jal-svr4pic.d: Ditto. * gas/mips/jal-xgot.d: Ditto. --- gas/testsuite/ChangeLog | 13 +++++++++++++ gas/testsuite/gas/mips/beq.d | 2 ++ gas/testsuite/gas/mips/beq.s | 4 ++-- gas/testsuite/gas/mips/bge.d | 1 + gas/testsuite/gas/mips/bgeu.d | 1 + gas/testsuite/gas/mips/blt.d | 1 + gas/testsuite/gas/mips/bltu.d | 1 + gas/testsuite/gas/mips/jal-svr4pic.d | 1 + gas/testsuite/gas/mips/jal-xgot.d | 1 + 9 files changed, 23 insertions(+), 2 deletions(-) (limited to 'gas') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index bb4b5f8..b7048f5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2001-10-23 Chris Demetriou + + * gas/mips/beq.s: Add zero words at end of instructions so + that objdump will print "..." when disassembling. + * gas/mips/beq.d: Update for disassembler changes which force + branch delay-slot nops to be printed. + * gas/mips/bge.d: Ditto. + * gas/mips/bgeu.d: Ditto. + * gas/mips/blt.d: Ditto. + * gas/mips/bltu.d: Ditto. + * gas/mips/jal-svr4pic.d: Ditto. + * gas/mips/jal-xgot.d: Ditto. + 2001-10-20 H.J. Lu * gas/elf/ehopt0.s: Lose ",@progbits". diff --git a/gas/testsuite/gas/mips/beq.d b/gas/testsuite/gas/mips/beq.d index 9eb2434..2a8abd5 100644 --- a/gas/testsuite/gas/mips/beq.d +++ b/gas/testsuite/gas/mips/beq.d @@ -31,6 +31,7 @@ Disassembly of section .text: 0+0058 <[^>]*> beqzl a0,0+0000 0+005c <[^>]*> nop 0+0060 <[^>]*> bnezl a0,0+0000 +0+0064 <[^>]*> nop ... 0+20068 <[^>]*> j 0+0000 [ ]*20068: (MIPS_JMP|JMPADDR|R_MIPS_26) .text @@ -43,4 +44,5 @@ Disassembly of section .text: 0+2007c <[^>]*> nop 0+20080 <[^>]*> bal 0+20080 [ ]*20080: R_MIPS_PC16 external_label +0+20084 <[^>]*> nop ... diff --git a/gas/testsuite/gas/mips/beq.s b/gas/testsuite/gas/mips/beq.s index 5567f02..b653cd0 100644 --- a/gas/testsuite/gas/mips/beq.s +++ b/gas/testsuite/gas/mips/beq.s @@ -26,5 +26,5 @@ text_label: b external_label bal external_label -# Round to a 16 byte boundary, for ease in testing multiple targets. - nop +# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... + .space 8 diff --git a/gas/testsuite/gas/mips/bge.d b/gas/testsuite/gas/mips/bge.d index 8ade2ad..26952de 100644 --- a/gas/testsuite/gas/mips/bge.d +++ b/gas/testsuite/gas/mips/bge.d @@ -66,4 +66,5 @@ Disassembly of section .text: 0+00d8 <[^>]*> slt at,a1,a0 0+00dc <[^>]*> bnezl at,000000dc [ ]*dc: R_MIPS_PC16 external_label +0+00e0 <[^>]*> nop ... diff --git a/gas/testsuite/gas/mips/bgeu.d b/gas/testsuite/gas/mips/bgeu.d index 49d1130..ace226e 100644 --- a/gas/testsuite/gas/mips/bgeu.d +++ b/gas/testsuite/gas/mips/bgeu.d @@ -60,4 +60,5 @@ Disassembly of section .text: 0+00c0 <[^>]*> sltu at,a1,a0 0+00c4 <[^>]*> bnezl at,000000c4 [ ]*c4: R_MIPS_PC16 external_label +0+00c8 <[^>]*> nop ... diff --git a/gas/testsuite/gas/mips/blt.d b/gas/testsuite/gas/mips/blt.d index d7670c0..fdc7c4b 100644 --- a/gas/testsuite/gas/mips/blt.d +++ b/gas/testsuite/gas/mips/blt.d @@ -66,4 +66,5 @@ Disassembly of section .text: 0+00d8 <[^>]*> slt at,a1,a0 0+00dc <[^>]*> beqzl at,000000dc [ ]*dc: R_MIPS_PC16 external_label +0+00e0 <[^>]*> nop ... diff --git a/gas/testsuite/gas/mips/bltu.d b/gas/testsuite/gas/mips/bltu.d index 0e2a644..f6fbfbb 100644 --- a/gas/testsuite/gas/mips/bltu.d +++ b/gas/testsuite/gas/mips/bltu.d @@ -60,4 +60,5 @@ Disassembly of section .text: 0+00c0 <[^>]*> sltu at,a1,a0 0+00c4 <[^>]*> beqzl at,000000c4 [ ]*c4: R_MIPS_PC16 external_label +0+00c8 <[^>]*> nop ... diff --git a/gas/testsuite/gas/mips/jal-svr4pic.d b/gas/testsuite/gas/mips/jal-svr4pic.d index 5dc94c2..72eda5b 100644 --- a/gas/testsuite/gas/mips/jal-svr4pic.d +++ b/gas/testsuite/gas/mips/jal-svr4pic.d @@ -43,4 +43,5 @@ Disassembly of section .text: 0+006c <[^>]*> nop 0+0070 <[^>]*> lw gp,0\(sp\) 0+0074 <[^>]*> b 0+0000 +0+0078 <[^>]*> nop ... diff --git a/gas/testsuite/gas/mips/jal-xgot.d b/gas/testsuite/gas/mips/jal-xgot.d index 8792c9b..2f320d6 100644 --- a/gas/testsuite/gas/mips/jal-xgot.d +++ b/gas/testsuite/gas/mips/jal-xgot.d @@ -48,4 +48,5 @@ Disassembly of section .text: 0+0074 <[^>]*> nop 0+0078 <[^>]*> lw gp,0\(sp\) 0+007c <[^>]*> b 0+0000 +0+0080 <[^>]*> nop ... -- cgit v1.1