diff options
author | Nick Clifton <nickc@redhat.com> | 2013-02-15 14:54:28 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-02-15 14:54:28 +0000 |
commit | 9d1df426e214b12fa6b728de55367d8621996be9 (patch) | |
tree | 85a3470b8be9b1567333426d8cda0185a9e48889 /ld/testsuite | |
parent | a043396b72d17ae87267b534aa98457a0702f5c8 (diff) | |
download | gdb-9d1df426e214b12fa6b728de55367d8621996be9.zip gdb-9d1df426e214b12fa6b728de55367d8621996be9.tar.gz gdb-9d1df426e214b12fa6b728de55367d8621996be9.tar.bz2 |
* metag-dis.c: Initialize outf->bytes_per_chunk to 4
which also makes the disassembler output be in little
endian like it should be.
* metag/labelarithmetic.d: Fix the expected disassembler
output to be in little endian format
* metag/metacore12.d: likewise
* metag/metacore21.d: likewise
* metag/metacore21ext.d: likewise
* metag/metadsp21.d: likewise
* metag/metadsp21ext.d: likewise
* metag/metafpu.d: likewise
* metag/metafpuext.d: likewise
* metag/tls.d: likewise
* ld-metag/pcrel.d: Fix the expected disassembler
output to be in little endian format
* ld-metag/shared.d: likewise
* ld-metag/stub.d: likewise
* ld-metag/stub_pic_app.d: likewise
* ld-metag/stub_pic_shared.d: likewise
* ld-metag/stub_shared.d: likewise
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-metag/pcrel.d | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-metag/shared.d | 56 | ||||
-rw-r--r-- | ld/testsuite/ld-metag/stub.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-metag/stub_pic_app.d | 38 | ||||
-rw-r--r-- | ld/testsuite/ld-metag/stub_pic_shared.d | 38 | ||||
-rw-r--r-- | ld/testsuite/ld-metag/stub_shared.d | 46 |
7 files changed, 109 insertions, 99 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e1a7e4a..dd7ee33 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2013-02-15 Markos Chandras <markos.chandras@imgtec.com> + + * ld-metag/pcrel.d: Fix the expected disassembler + output to be in little endian format + * ld-metag/shared.d: likewise + * ld-metag/stub.d: likewise + * ld-metag/stub_pic_app.d: likewise + * ld-metag/stub_pic_shared.d: likewise + * ld-metag/stub_shared.d: likewise + 2013-02-13 Richard Sandiford <rdsandiford@googlemail.com> * ld-mips-elf/mips16-pic-2.dd, diff --git a/ld/testsuite/ld-metag/pcrel.d b/ld/testsuite/ld-metag/pcrel.d index dd2fda2..59cd4bc 100644 --- a/ld/testsuite/ld-metag/pcrel.d +++ b/ld/testsuite/ld-metag/pcrel.d @@ -4,15 +4,15 @@ Disassembly of section .text: .* <_start>: -.*: a8 00 00 ab CALLR D0Re0,10005068 <external> -.*: 48 00 00 ab CALLR D0Re0,10005060 <global> -.*: 48 00 00 ab CALLR D0Re0,10005064 <local> +.*: ab0000a8 CALLR D0Re0,10005068 <external> +.*: ab000048 CALLR D0Re0,10005060 <global> +.*: ab000048 CALLR D0Re0,10005064 <local> .* <global>: -.*: fe ff ff a0 NOP +.*: a0fffffe NOP .* <local>: -.*: fe ff ff a0 NOP +.*: a0fffffe NOP .* <external>: -.*: fe ff ff a0 NOP +.*: a0fffffe NOP diff --git a/ld/testsuite/ld-metag/shared.d b/ld/testsuite/ld-metag/shared.d index a01b5a5..7662dbc 100644 --- a/ld/testsuite/ld-metag/shared.d +++ b/ld/testsuite/ld-metag/shared.d @@ -7,35 +7,35 @@ start address 0x.* Disassembly of section .plt: .* <.*>: - .*: 01 00 90 82 ADDT A0.2,CPC0,#0 - .*: 60 08 12 82 ADD A0.2,A0.2,#0x410c - .*: 20 0c 10 a3 MOV D0Re0,A0.2 - .*: e3 01 00 b7 SETL \[A0StP\+\+\],D0Re0,D1Re0 - .*: 2a 01 00 c6 GETD PC,\[D0Re0\+#4\] + .*: 82900001 ADDT A0.2,CPC0,#0 + .*: 82120860 ADD A0.2,A0.2,#0x410c + .*: a3100c20 MOV D0Re0,A0.2 + .*: b70001e3 SETL \[A0StP\+\+\],D0Re0,D1Re0 + .*: c600012a GETD PC,\[D0Re0\+#4\] .* <app_func2@plt>: - .*: 01 00 90 82 ADDT A0.2,CPC0,#0 - .*: 80 07 12 82 ADD A0.2,A0.2,#0x40f0 - .*: 6a 80 00 c6 GETD PC,\[A0.2\] - .*: 04 00 00 03 MOV D1Re0,#0 - .*: e0 fe ff a0 B 184 <app_func2@plt-0x14> + .*: 82900001 ADDT A0.2,CPC0,#0 + .*: 82120780 ADD A0.2,A0.2,#0x40f0 + .*: c600806a GETD PC,\[A0.2\] + .*: 03000004 MOV D1Re0,#0 + .*: a0fffee0 B 184 <app_func2@plt-0x14> Disassembly of section .text: .* <lib_func1>: - .*: 05 32 20 00 MOV D0FrT,A0FrP - .*: 26 00 08 86 ADD A0FrP,A0StP,#0 - .*: e3 01 20 b7 SETL \[A0StP\+\+\],D0FrT,D1RtP - .*: e9 02 08 b6 SETD \[A0StP\+#8\+\+\],A1LbP - .*: 40 00 00 82 ADD A0StP,A0StP,#0x8 - .*: 01 00 88 83 ADDT A1LbP,CPC1,#0 - .*: 60 06 0b 83 ADD A1LbP,A1LbP,#0x60cc - .*: 94 fe ff ab CALLR D1RtP,198 <app_func2@plt> - .*: 8d 01 0c a7 GETD D0Ar6,\[A1LbP\+#-8180\] - .*: 00 02 00 00 ADD D0Re0,D0Re0,D0Ar6 - .*: 05 02 00 01 MOV D1Re0,A1LbP - .*: f9 ff 07 03 ADDT D1Re0,D1Re0,#0xffff - .*: c0 ff 06 03 ADD D1Re0,D1Re0,#0xdff8 - .*: 64 fe 0f a7 GETD A1LbP,\[A0StP\+#-16\] - .*: e3 41 20 c7 GETL D0FrT,D1RtP,\[A0FrP\+\+\] - .*: 26 42 00 8e SUB A0StP,A0FrP,#0x8 - .*: 05 18 08 80 MOV A0FrP,D0FrT - .*: a0 08 20 a3 MOV PC,D1RtP + .*: 00203205 MOV D0FrT,A0FrP + .*: 86080026 ADD A0FrP,A0StP,#0 + .*: b72001e3 SETL \[A0StP\+\+\],D0FrT,D1RtP + .*: b60802e9 SETD \[A0StP\+#8\+\+\],A1LbP + .*: 82000040 ADD A0StP,A0StP,#0x8 + .*: 83880001 ADDT A1LbP,CPC1,#0 + .*: 830b0660 ADD A1LbP,A1LbP,#0x60cc + .*: abfffe94 CALLR D1RtP,198 <app_func2@plt> + .*: a70c018d GETD D0Ar6,\[A1LbP\+#-8180\] + .*: 00000200 ADD D0Re0,D0Re0,D0Ar6 + .*: 01000205 MOV D1Re0,A1LbP + .*: 0307fff9 ADDT D1Re0,D1Re0,#0xffff + .*: 0306ffc0 ADD D1Re0,D1Re0,#0xdff8 + .*: a70ffe64 GETD A1LbP,\[A0StP\+#-16\] + .*: c72041e3 GETL D0FrT,D1RtP,\[A0FrP\+\+\] + .*: 8e004226 SUB A0StP,A0FrP,#0x8 + .*: 80081805 MOV A0FrP,D0FrT + .*: a32008a0 MOV PC,D1RtP diff --git a/ld/testsuite/ld-metag/stub.d b/ld/testsuite/ld-metag/stub.d index c9abb2a..ade4b5e 100644 --- a/ld/testsuite/ld-metag/stub.d +++ b/ld/testsuite/ld-metag/stub.d @@ -5,10 +5,10 @@ start address 0x.* Disassembly of section .text: .* <__start-0x8>: -.*: 05 81 18 82 MOVT A0.3,#0x1020 -.*: 03 83 1a ac JUMP A0.3,#0x5060 +.*: 82188105 MOVT A0.3,#0x1020 +.*: ac1a8303 JUMP A0.3,#0x5060 .* <__start>: -.*: d4 ff ff ab CALLR D1RtP,.* <__start-0x8> +.*: abffffd4 CALLR D1RtP,.* <__start-0x8> \.\.\. .* <_far>: -.*: fe ff ff a0 NOP +.*: a0fffffe NOP diff --git a/ld/testsuite/ld-metag/stub_pic_app.d b/ld/testsuite/ld-metag/stub_pic_app.d index 3242fb2..7a763b9 100644 --- a/ld/testsuite/ld-metag/stub_pic_app.d +++ b/ld/testsuite/ld-metag/stub_pic_app.d @@ -6,29 +6,29 @@ start address 0x.* Disassembly of section .plt: .* <.*>: -.*: 05 81 00 02 MOVT D0Re0,#0x1020 -.*: 20 97 04 02 ADD D0Re0,D0Re0,#0x92e4 -.*: e3 01 00 b7 SETL \[A0StP\+\+\],D0Re0,D1Re0 -.*: 2a 01 00 c6 GETD PC,\[D0Re0\+#4\] -.*: fe ff ff a0 NOP +.*: 02008105 MOVT D0Re0,#0x1020 +.*: 02049720 ADD D0Re0,D0Re0,#0x92e4 +.*: b70001e3 SETL \[A0StP\+\+\],D0Re0,D1Re0 +.*: c600012a GETD PC,\[D0Re0\+#4\] +.*: a0fffffe NOP .* <_lib_func@plt>: -.*: 05 81 10 82 MOVT A0.2,#0x1020 -.*: e0 96 14 82 ADD A0.2,A0.2,#0x92dc -.*: 6a 80 00 c6 GETD PC,\[A0.2\] -.*: 04 00 00 03 MOV D1Re0,#0 -.*: e0 fe ff a0 B .* <_lib_func@plt-0x14> +.*: 82108105 MOVT A0.2,#0x1020 +.*: 821496e0 ADD A0.2,A0.2,#0x92dc +.*: c600806a GETD PC,\[A0.2\] +.*: 03000004 MOV D1Re0,#0 +.*: a0fffee0 B .* <_lib_func@plt-0x14> Disassembly of section .text: .* <__start-0x10>: -.*: 05 81 18 82 MOVT A0.3,#0x1020 -.*: a3 91 1a ac JUMP A0.3,#0x5234 -.*: 05 81 18 82 MOVT A0.3,#0x1020 -.*: 83 91 1a ac JUMP A0.3,#0x5230 +.*: 82188105 MOVT A0.3,#0x1020 +.*: ac1a91a3 JUMP A0.3,#0x5234 +.*: 82188105 MOVT A0.3,#0x1020 +.*: ac1a9183 JUMP A0.3,#0x5230 .* <__start>: -.*: 94 ff ff ab CALLR D1RtP,.* <_lib_func@plt\+0x14> -.*: d4 fe ff ab CALLR D1RtP,.* <_lib_func@plt> -.*: 94 ff ff ab CALLR D1RtP,.* <_lib_func@plt\+0x1c> +.*: abffff94 CALLR D1RtP,.* <_lib_func@plt\+0x14> +.*: abfffed4 CALLR D1RtP,.* <_lib_func@plt> +.*: abffff94 CALLR D1RtP,.* <_lib_func@plt\+0x1c> \.\.\. .* <_far2>: -.*: fe ff ff a0 NOP +.*: a0fffffe NOP .* <_far>: -.*: f4 ff ff ab CALLR D1RtP,.* <_far2> +.*: abfffff4 CALLR D1RtP,.* <_far2> diff --git a/ld/testsuite/ld-metag/stub_pic_shared.d b/ld/testsuite/ld-metag/stub_pic_shared.d index 0186186..41129c3 100644 --- a/ld/testsuite/ld-metag/stub_pic_shared.d +++ b/ld/testsuite/ld-metag/stub_pic_shared.d @@ -6,30 +6,30 @@ start address 0x.* Disassembly of section .plt: .* <.*>: - .*: 01 01 90 82 ADDT A0.2,CPC0,#0x20 - .*: 60 06 12 82 ADD A0.2,A0.2,#0x40cc - .*: 20 0c 10 a3 MOV D0Re0,A0.2 - .*: e3 01 00 b7 SETL \[A0StP\+\+\],D0Re0,D1Re0 - .*: 2a 01 00 c6 GETD PC,\[D0Re0\+#4\] + .*: 82900101 ADDT A0.2,CPC0,#0x20 + .*: 82120660 ADD A0.2,A0.2,#0x40cc + .*: a3100c20 MOV D0Re0,A0.2 + .*: b70001e3 SETL \[A0StP\+\+\],D0Re0,D1Re0 + .*: c600012a GETD PC,\[D0Re0\+#4\] .* <_far2@plt>: - .*: 01 01 90 82 ADDT A0.2,CPC0,#0x20 - .*: 80 05 12 82 ADD A0.2,A0.2,#0x40b0 - .*: 6a 80 00 c6 GETD PC,\[A0.2\] - .*: 04 00 00 03 MOV D1Re0,#0 - .*: e0 fe ff a0 B .* <_far2@plt-0x14> + .*: 82900101 ADDT A0.2,CPC0,#0x20 + .*: 82120580 ADD A0.2,A0.2,#0x40b0 + .*: c600806a GETD PC,\[A0.2\] + .*: 03000004 MOV D1Re0,#0 + .*: a0fffee0 B .* <_far2@plt-0x14> Disassembly of section .text: .* <__start-0xc>: -.*: 01 01 98 82 ADDT A0.3,CPC0,#0x20 -.*: 00 01 18 82 ADD A0.3,A0.3,#0x20 -.*: a0 0c 18 a3 MOV PC,A0.3 +.*: 82980101 ADDT A0.3,CPC0,#0x20 +.*: 82180100 ADD A0.3,A0.3,#0x20 +.*: a3180ca0 MOV PC,A0.3 .* <__start>: -.*: b4 ff ff ab CALLR D1RtP,.* <_far2@plt\+0x14> +.*: abffffb4 CALLR D1RtP,.* <_far2@plt\+0x14> \.\.\. .* <pad_end>: -.*: f9 fe 9f 82 ADDT A0.3,CPC0,#0xffdf -.*: e0 fe 1f 82 ADD A0.3,A0.3,#0xffdc -.*: a0 0c 18 a3 MOV PC,A0.3 +.*: 829ffef9 ADDT A0.3,CPC0,#0xffdf +.*: 821ffee0 ADD A0.3,A0.3,#0xffdc +.*: a3180ca0 MOV PC,A0.3 .* <_far2>: -.*: fe ff ff a0 NOP +.*: a0fffffe NOP .* <_far>: -.*: 94 ff ff ab CALLR D1RtP,.* <pad_end> +.*: abffff94 CALLR D1RtP,.* <pad_end> diff --git a/ld/testsuite/ld-metag/stub_shared.d b/ld/testsuite/ld-metag/stub_shared.d index 8b4a5cc..e937f1e 100644 --- a/ld/testsuite/ld-metag/stub_shared.d +++ b/ld/testsuite/ld-metag/stub_shared.d @@ -7,30 +7,30 @@ start address 0x.* Disassembly of section .plt: .* <.*>: - .*: 01 00 90 82 ADDT A0.2,CPC0,#0 - .*: 00 07 12 82 ADD A0.2,A0.2,#0x40e0 - .*: 20 0c 10 a3 MOV D0Re0,A0.2 - .*: e3 01 00 b7 SETL \[A0StP\+\+\],D0Re0,D1Re0 - .*: 2a 01 00 c6 GETD PC,\[D0Re0\+#4\] + .*: 82900001 ADDT A0.2,CPC0,#0 + .*: 82120700 ADD A0.2,A0.2,#0x40e0 + .*: a3100c20 MOV D0Re0,A0.2 + .*: b70001e3 SETL \[A0StP\+\+\],D0Re0,D1Re0 + .*: c600012a GETD PC,\[D0Re0\+#4\] .* <_far2@plt>: - .*: 01 00 90 82 ADDT A0.2,CPC0,#0 - .*: 20 06 12 82 ADD A0.2,A0.2,#0x40c4 - .*: 6a 80 00 c6 GETD PC,\[A0.2\] - .*: 04 00 00 03 MOV D1Re0,#0 - .*: e0 fe ff a0 B .* <_far2@plt-0x14> + .*: 82900001 ADDT A0.2,CPC0,#0 + .*: 82120620 ADD A0.2,A0.2,#0x40c4 + .*: c600806a GETD PC,\[A0.2\] + .*: 03000004 MOV D1Re0,#0 + .*: a0fffee0 B .* <_far2@plt-0x14> Disassembly of section .text: .* <_lib_func>: - .*: 05 32 20 00 MOV D0FrT,A0FrP - .*: 26 00 08 86 ADD A0FrP,A0StP,#0 - .*: e3 01 20 b7 SETL \[A0StP\+\+\],D0FrT,D1RtP - .*: e9 02 08 b6 SETD \[A0StP\+#8\+\+\],A1LbP - .*: 40 00 00 82 ADD A0StP,A0StP,#0x8 - .*: 01 00 88 83 ADDT A1LbP,CPC1,#0 - .*: 00 05 0b 83 ADD A1LbP,A1LbP,#0x60a0 - .*: 94 fe ff ab CALLR D1RtP,.* <_far2@plt> - .*: 64 fe 0f a7 GETD A1LbP,\[A0StP\+#-16\] - .*: e3 41 20 c7 GETL D0FrT,D1RtP,\[A0FrP\+\+\] - .*: 26 42 00 8e SUB A0StP,A0FrP,#0x8 - .*: 05 18 08 80 MOV A0FrP,D0FrT - .*: a0 08 20 a3 MOV PC,D1RtP + .*: 00203205 MOV D0FrT,A0FrP + .*: 86080026 ADD A0FrP,A0StP,#0 + .*: b72001e3 SETL \[A0StP\+\+\],D0FrT,D1RtP + .*: b60802e9 SETD \[A0StP\+#8\+\+\],A1LbP + .*: 82000040 ADD A0StP,A0StP,#0x8 + .*: 83880001 ADDT A1LbP,CPC1,#0 + .*: 830b0500 ADD A1LbP,A1LbP,#0x60a0 + .*: abfffe94 CALLR D1RtP,.* <_far2@plt> + .*: a70ffe64 GETD A1LbP,\[A0StP\+#-16\] + .*: c72041e3 GETL D0FrT,D1RtP,\[A0FrP\+\+\] + .*: 8e004226 SUB A0StP,A0FrP,#0x8 + .*: 80081805 MOV A0FrP,D0FrT + .*: a32008a0 MOV PC,D1RtP |