From: Stephane Carrez Date: Sun, 1 Dec 2002 13:46:08 +0000 (+0000) Subject: * gas/m68hc11/insns.s: Don't use .comm for stack symbol so that objdump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49fa082ddec8c82e4f09857c9ca6fdae179217ed;p=binutils-gdb.git * gas/m68hc11/insns.s: Don't use .comm for stack symbol so that objdump can find the real symbol and not a gas internal debug symbol. * gas/m68hc11/insns.d: Update. * gas/m68hc11/insns-dwarf2.d: Update. * gas/m68hc11/insns12.d: Update. * gas/m68hc11/opers12.s (min5b, min9b): Use 16 and -256 for the min. * gas/m68hc11/opers12.d: Update after indexed offset operand fixes. * gas/m68hc11/opers12-dwarf2.d: Likewise. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 3a7f20560d5..44ce6716600 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2002-12-01 Stephane Carrez + + * gas/m68hc11/insns.s: Don't use .comm for stack symbol so that objdump + can find the real symbol and not a gas internal debug symbol. + * gas/m68hc11/insns.d: Update. + * gas/m68hc11/insns-dwarf2.d: Update. + * gas/m68hc11/insns12.d: Update. + * gas/m68hc11/opers12.s (min5b, min9b): Use 16 and -256 for the min. + * gas/m68hc11/opers12.d: Update after indexed offset operand fixes. + * gas/m68hc11/opers12-dwarf2.d: Likewise. + 2002-11-30 Kaz Kojima * sh/gas/sh/pic.s: Add a test for ".long foo@PLT+.-2-label". diff --git a/gas/testsuite/gas/m68hc11/insns-dwarf2.d b/gas/testsuite/gas/m68hc11/insns-dwarf2.d index 0ecea9676b2..ec5c79162bd 100644 --- a/gas/testsuite/gas/m68hc11/insns-dwarf2.d +++ b/gas/testsuite/gas/m68hc11/insns-dwarf2.d @@ -15,7 +15,7 @@ Disassembly of section .text: _start: lds #stack\+1024 - 0: 8e 04 00 lds #400 <.L0\+0x3a4> + 0: 8e 04 00 lds #400 ldx #1 3: ce 00 01 ldx #1 <_start\+0x1> @@ -87,7 +87,7 @@ test2: brclr \*ZD2\+2, #40, test2 3d: 13 02 28 d6 brclr \*2 <_start\+0x2> #\$28 17 ldy #24\+_start-44 - 41: 18 ce ff ec ldy #ffec <.L0\+0xff90> + 41: 18 ce ff ec ldy #ffec ldd B_low,y 45: 18 ec 0c ldd 12,y addd A_low,y diff --git a/gas/testsuite/gas/m68hc11/insns.d b/gas/testsuite/gas/m68hc11/insns.d index 06cc048a577..a26f595229b 100644 --- a/gas/testsuite/gas/m68hc11/insns.d +++ b/gas/testsuite/gas/m68hc11/insns.d @@ -7,7 +7,7 @@ .*: +file format elf32\-m68hc11 Disassembly of section .text: -0+0+ <_start> lds #0+0400 +0+0+ <_start> lds #0+0400 [ ]+1: R_M68HC11_16 stack 0+0003 <_start\+0x3> ldx #0+0001 <_start\+0x1> 0+0006 jsr 0+0+ <_start> @@ -48,7 +48,7 @@ Disassembly of section .text: 0+003d brclr \*0+0002 <_start\+0x2> #\$28 0+0017 [ ]+3d: R_M68HC11_RL_JUMP \*ABS\* [ ]+3e: R_M68HC11_8 ZD2 -0+0041 ldy #0+ffec +0+0041 ldy #0+ffec [ ]+43: R_M68HC11_16 _start 0+0045 ldd 12,y 0+0048 addd 44,y diff --git a/gas/testsuite/gas/m68hc11/insns.s b/gas/testsuite/gas/m68hc11/insns.s index 2b2f9716a08..9c642c25d91 100644 --- a/gas/testsuite/gas/m68hc11/insns.s +++ b/gas/testsuite/gas/m68hc11/insns.s @@ -57,4 +57,7 @@ L1: .sect .data -.comm stack, 1024 + .sect .bss +stack: + .space 1024 +stack_end: diff --git a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d index 04cc8355927..60684dea199 100644 --- a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d +++ b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d @@ -55,7 +55,7 @@ L1: ldy ,x ldd \[32768,pc\] 39: ec fb 80 00 ldd \[32768,PC\] ldd L1,pc - 3d: ec f8 09 ldd 9,PC + 3d: ec f9 ca ldd -54,PC \{9 \} std a,x ; Two\-reg index 40: 6c e4 std A,X ldx b,x @@ -199,43 +199,43 @@ t2: leax t2\-t1,y f5: 1a 44 leax 4,Y leax toto,x - f7: 1a e2 00 64 leax 100,X + f7: 1a e0 64 leax 100,X leas toto\+titi,sp - fb: 1b f2 00 6e leas 110,SP + fa: 1b f0 6e leas 110,SP leay titi,x - ff: 19 e2 00 0a leay 10,X + fd: 19 0a leay 10,X leas bb,y - 103: 1b ea 28 00 leas 10240,Y + ff: 1b ea 28 00 leas 10240,Y leas min5b,pc - 107: 1b fa 00 ff leas 255,PC + 103: 1b d0 leas -16,PC \{f5 \} leas max5b,pc - 10b: 1b fa 00 00 leas 0,PC + 105: 1b cf leas 15,PC \{116 \} leas min9b,pc - 10f: 1b fa 00 ff leas 255,PC + 107: 1b f9 00 leas -256,PC \{9 \} leas max9b,pc - 113: 1b fa 00 00 leas 0,PC + 10a: 1b f8 ff leas 255,PC \{20b <.L0\+0xd8>\} ;; ;; Disassembler bug with movb ;; movb #23,0x2345 - 117: 18 0b 17 23 movb #23, 2345 <.L0\+0x2208> - 11b: 45 + 10d: 18 0b 17 23 movb #23, 2345 <.L0\+0x2212> + 111: 45 movb #40,12,sp - 11c: 18 08 8c 28 movb #40, 12,SP + 112: 18 08 8c 28 movb #40, 12,SP movb #39,3,\+sp - 120: 18 08 a2 27 movb #39, 3,\+SP + 116: 18 08 a2 27 movb #39, 3,\+SP movb #20,14,sp - 124: 18 08 8e 14 movb #20, 14,SP + 11a: 18 08 8e 14 movb #20, 14,SP movw #0x3210,0x3456 - 128: 18 03 32 10 movw #3210 , 3456 - 12c: 34 56 + 11e: 18 03 32 10 movw #3210 , 3456 + 122: 34 56 movw #0x4040,12,sp - 12e: 18 00 8c 40 movw #4040 , 12,SP - 132: 40 + 124: 18 00 8c 40 movw #4040 , 12,SP + 128: 40 movw #0x3900,3,\+sp - 133: 18 00 a2 39 movw #3900 , 3,\+SP - 137: 00 + 129: 18 00 a2 39 movw #3900 , 3,\+SP + 12d: 00 movw #0x2000,14,sp - 138: 18 00 8e 20 movw #2000 <.L0\+0x1ec3>, 14,SP - 13c: 00 + 12e: 18 00 8e 20 movw #2000 <.L0\+0x1ecd>, 14,SP + 132: 00 diff --git a/gas/testsuite/gas/m68hc11/opers12.d b/gas/testsuite/gas/m68hc11/opers12.d index 4cc925f639c..f2c4e12fea4 100644 --- a/gas/testsuite/gas/m68hc11/opers12.d +++ b/gas/testsuite/gas/m68hc11/opers12.d @@ -1,6 +1,6 @@ #objdump: -d --prefix-addresses --reloc #as: -m68hc12 -#name: opers +#name: 68HC12 specific addressing modes (opers12) .*: +file format elf32\-m68hc12 @@ -26,8 +26,7 @@ Disassembly of section .text: 0+0031 ldaa \[257,Y\] 0+0035 ldab \[32767,SP\] 0+0039 ldd \[32768,PC\] -0+003d ldd 9,PC -[ ]+3f: R_M68HC12_8 \.text +0+003d ldd \-54,PC \{0+9 \} 0+0040 std A,X 0+0042 ldx B,X 0+0044 stx D,Y @@ -97,18 +96,18 @@ Disassembly of section .text: [ ]+f3: R_M68HC12_16 abort 0+00f5 leax 4,Y 0+00f7 leax 100,X -0+00fb leas 110,SP -0+00ff leay 10,X -0+0103 leas 10240,Y -0+0107 leas 255,PC -0+010b leas 0,PC -0+010f leas 255,PC -0+0113 leas 0,PC -0+0117 movb #23, 0+2345 -0+011c movb #40, 12,SP -0+0120 movb #39, 3,\+SP -0+0124 movb #20, 14,SP -0+0128 movw #0+3210 , 0+3456 -0+012e movw #0+4040 , 12,SP -0+0133 movw #0+3900 , 3,\+SP -0+0138 movw #0+2000 , 14,SP +0+00fa leas 110,SP +0+00fd leay 10,X +0+00ff leas 10240,Y +0+0103 leas -16,PC \{0+f5 \} +0+0105 leas 15,PC \{0+116 \} +0+0107 leas -256,PC \{0+9 \} +0+010a leas 255,PC \{0+20b \} +0+010d movb #23, 0+2345 +0+0112 movb #40, 12,SP +0+0116 movb #39, 3,\+SP +0+011a movb #20, 14,SP +0+011e movw #0+3210 , 0+3456 +0+0124 movw #0+4040 , 12,SP +0+0129 movw #0+3900 , 3,\+SP +0+012e movw #0+2000 , 14,SP diff --git a/gas/testsuite/gas/m68hc11/opers12.s b/gas/testsuite/gas/m68hc11/opers12.s index 6157d8d5c06..e4e757fc433 100644 --- a/gas/testsuite/gas/m68hc11/opers12.s +++ b/gas/testsuite/gas/m68hc11/opers12.s @@ -115,8 +115,8 @@ t2: titi = 10 toto = 100 -min5b= -15 +min5b= -16 max5b= 15 -min9b= -255 +min9b= -256 max9b= 255 bb = 10240