diff options
author | Lili Cui <lili.cui@intel.com> | 2020-01-14 08:59:37 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-01-14 08:59:37 -0800 |
commit | e44925ae5689fc997b833d039e971484f54bd8c0 (patch) | |
tree | 8d15b4b195bbc63a894cdee40dc90ca7839aacb7 /ld | |
parent | 7da6a5b938b426379f61e56e259a925bedfe242b (diff) | |
download | gdb-e44925ae5689fc997b833d039e971484f54bd8c0.zip gdb-e44925ae5689fc997b833d039e971484f54bd8c0.tar.gz gdb-e44925ae5689fc997b833d039e971484f54bd8c0.tar.bz2 |
x86: Updated align branch tests for Darwin and i686-pc-elf
1. Update align branch assembler tests to match Darwin disassembler
outputs.
2. Skip unsupported "call *foo" tests in 64-bit mode on Darwin.
3. Update align branch linker test to match any addresses for i686-pc-elf.
gas/
* testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
* testsuite/gas/i386/align-branch-1b.d: Likewise.
* testsuite/gas/i386/align-branch-1c.d: Likewise.
* testsuite/gas/i386/align-branch-1d.d: Likewise.
* testsuite/gas/i386/align-branch-1e.d: Likewise.
* testsuite/gas/i386/align-branch-1f.d: Likewise.
* testsuite/gas/i386/align-branch-1g.d: Likewise.
* testsuite/gas/i386/align-branch-1h.d: Likewise.
* testsuite/gas/i386/align-branch-1i.d: Likewise.
* testsuite/gas/i386/align-branch-5.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
* testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
* testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
ld/
* testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/align-branch-1.d | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1c80908..ee68a8c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2020-01-14 Lili Cui <lili.cui@intel.com> + + * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf. + 2020-01-13 Alan Modra <amodra@gmail.com> * po/BLD-POTFILES.in: Regenerate. diff --git a/ld/testsuite/ld-i386/align-branch-1.d b/ld/testsuite/ld-i386/align-branch-1.d index 9eb7287..b1347e5 100644 --- a/ld/testsuite/ld-i386/align-branch-1.d +++ b/ld/testsuite/ld-i386/align-branch-1.d @@ -10,16 +10,16 @@ Disassembly of section .text: [a-f0-9]+ <_start>: +[a-f0-9]+: 85 d2 test %edx,%edx - +[a-f0-9]+: 74 20 je 8049024 <_start\+0x24> + +[a-f0-9]+: 74 20 je +[a-f0-9]+ <_start\+0x24> +[a-f0-9]+: 85 d2 test %edx,%edx - +[a-f0-9]+: 74 1c je 8049024 <_start\+0x24> + +[a-f0-9]+: 74 1c je +[a-f0-9]+ <_start\+0x24> +[a-f0-9]+: 85 ff test %edi,%edi - +[a-f0-9]+: 74 18 je 8049024 <_start\+0x24> + +[a-f0-9]+: 74 18 je +[a-f0-9]+ <_start\+0x24> +[a-f0-9]+: 65 a1 00 00 00 00 mov %gs:0x0,%eax +[a-f0-9]+: 90 nop +[a-f0-9]+: 8d 74 26 00 lea 0x0\(%esi,%eiz,1\),%esi +[a-f0-9]+: 3e 3e 3e 8b 90 fc ff ff ff ds ds mov %ds:-0x4\(%eax\),%edx +[a-f0-9]+: 85 d2 test %edx,%edx - +[a-f0-9]+: 74 00 je 8049024 <_start\+0x24> + +[a-f0-9]+: 74 00 je +[a-f0-9]+ <_start\+0x24> +[a-f0-9]+: c3 ret #pass |