diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-11-16 02:50:33 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-11-16 02:50:33 -0800 |
commit | 8c8cad3aa839747e368cc5db58331756a2b70e8e (patch) | |
tree | a34508c96deee8c8a7b6b7a1aa122a472d53b77e /gas | |
parent | c632b6456b1f220475fbf61f19ada28230449ff6 (diff) | |
download | gdb-8c8cad3aa839747e368cc5db58331756a2b70e8e.zip gdb-8c8cad3aa839747e368cc5db58331756a2b70e8e.tar.gz gdb-8c8cad3aa839747e368cc5db58331756a2b70e8e.tar.bz2 |
i386: Replace .code64/.code32 with .byte
Since .code64 directive isn't available for 32-bit BFD and ELF directive
isn't available for non-ELF directive, we should avoid them.
* testsuite/gas/i386/noextreg.s: Replace .code64/.code32 and
64-bit instructions with .byte. Remove ELF directive.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/noextreg.s | 21 |
2 files changed, 13 insertions, 13 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 307fb00..eae7a29 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2017-11-15 H.J. Lu <hongjiu.lu@intel.com> + + * testsuite/gas/i386/noextreg.s: Replace .code64/.code32 and + 64-bit instructions with .byte. Remove ELF directive. + 2017-11-15 Tamar Christina <tamar.christina@arm.com> * config/tc-arm.c (arm_ext_fp16_fml, fp16fml): New. diff --git a/gas/testsuite/gas/i386/noextreg.s b/gas/testsuite/gas/i386/noextreg.s index ba0c6ff..f1205ac 100644 --- a/gas/testsuite/gas/i386/noextreg.s +++ b/gas/testsuite/gas/i386/noextreg.s @@ -2,24 +2,19 @@ .text ix86: andn eax, eax, [eax] - .code64 - andn rax, rax, [rax] - .code32 + # andn rax, rax, [rax] + .byte 0xc4, 0xe2, 0xf8, 0xf2, 0x00 tzmsk eax, [eax] - .code64 - tzmsk rax, [rax] - .code32 + # tzmsk rax, [rax] + .byte 0x8f, 0xe9, 0xf8, 0x01, 0x20 llwpcb eax - .code64 - llwpcb rax - .code32 + # llwpcb rax + .byte 0x8f, 0xe9, 0xf8, 0x12, 0xc0 vfmaddps xmm0, xmm0, [eax], xmm0 - .byte 0xc4, 0xe3, 0x79, 0x68, 0x00, 0x0f # vfmaddps xmm0, xmm0, [eax], xmm0 + # vfmaddps xmm0, xmm0, [eax], xmm0 + .byte 0xc4, 0xe3, 0x79, 0x68, 0x00, 0x0f ret - - .type ix86, @function - .size ix86, . - ix86 |