diff options
author | Andrew Senkevich <andrew.senkevich@intel.com> | 2016-01-29 15:46:50 +0300 |
---|---|---|
committer | Andrew Senkevich <andrew.senkevich@intel.com> | 2016-01-29 15:46:50 +0300 |
commit | e4e00185b58fd15c74913f19f4d5fb311b239e21 (patch) | |
tree | 92754b63964dbcf1598666118acc3876c61c1382 /opcodes | |
parent | d64450d73aedfbd3521872e1ff7ec4f16ef0aae1 (diff) | |
download | gdb-e4e00185b58fd15c74913f19f4d5fb311b239e21.zip gdb-e4e00185b58fd15c74913f19f4d5fb311b239e21.tar.gz gdb-e4e00185b58fd15c74913f19f4d5fb311b239e21.tar.bz2 |
Add option -mfence-as-lock-add=[no|yes].
With -mfence-as-lock-add=yes lfence, mfence and sfence will be encoded
as lock addl $0x0, (%{r,e}sp).
gas/:
* config/tc-i386.c (avoid_fence): New.
(output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
is true.
(OPTION_FENCE_AS_LOCK_ADD): New.
(md_longopts): Add -mfence-as-lock-add.
(md_parse_option): Handle -mfence-as-lock-add.
(md_show_usage): Add -mfence-as-lock-add=[no|yes].
* doc/c-i386.texi (-mfence-as-lock-add): Document.
gas/testsuite/:
* gas/i386/i386.exp: Run new tests.
* gas/i386/fence-as-lock-add.s: New.
* gas/i386/fence-as-lock-add-yes.d: Likewise.
* gas/i386/fence-as-lock-add-no.d: Likewise.
* gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
* gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
Diffstat (limited to 'opcodes')
0 files changed, 0 insertions, 0 deletions