llvm-6502/lib/Target/X86/MCTargetDesc
JF Bastien 13c782674a x86: Emit LOCK prefix after DATA16
Summary: x86 allows either ordering for the LOCK and DATA16 prefixes, but using GCC+GAS leads to different code generation than using LLVM. This change matches the order that GAS emits the x86 prefixes when a semicolon isn't used in inline assembly (see tc-i386.c comment before define LOCK_PREFIX), and helps simplify tooling that operates on the instruction's byte sequence (such as NaCl's validator). This change shouldn't have any performance impact.

Test Plan: ninja check

Reviewers: craig.topper, jvoung

Subscribers: jfb, llvm-commits

Differential Revision: http://reviews.llvm.org/D6630

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224283 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-15 22:34:58 +00:00
..
CMakeLists.txt MC: create X86WinCOFFStreamer for target specific behaviour 2014-04-27 03:48:12 +00:00
LLVMBuild.txt Update library dependencies. 2014-07-24 02:10:42 +00:00
Makefile
X86AsmBackend.cpp [CompactUnwind] Fix register encoding logic 2014-12-08 18:18:32 +00:00
X86BaseInfo.h [X86] Clean up whitespace as well as minor coding style 2014-12-04 05:20:33 +00:00
X86ELFObjectWriter.cpp X86, MC: Tidy up some whitespace in GetRelocType 2014-11-06 08:10:37 +00:00
X86ELFRelocationInfo.cpp [C++] Use 'nullptr'. Target edition. 2014-04-25 05:30:21 +00:00
X86FixupKinds.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
X86MachObjectWriter.cpp [X86] Clean up whitespace as well as minor coding style 2014-12-04 05:20:33 +00:00
X86MachORelocationInfo.cpp [C++] Use 'nullptr'. Target edition. 2014-04-25 05:30:21 +00:00
X86MCAsmInfo.cpp Allow target to specify prefix for labels 2014-12-04 00:06:57 +00:00
X86MCAsmInfo.h Move getNonexecutableStackSection up to the base ELF class. 2014-10-15 15:44:16 +00:00
X86MCCodeEmitter.cpp x86: Emit LOCK prefix after DATA16 2014-12-15 22:34:58 +00:00
X86MCTargetDesc.cpp Revert "ADT: correctly report isMSVCEnvironment for windows itanium" 2014-11-17 22:55:59 +00:00
X86MCTargetDesc.h [X86] Clean up whitespace as well as minor coding style 2014-12-04 05:20:33 +00:00
X86WinCOFFObjectWriter.cpp X86: Split the relocation selection up 2014-04-08 02:15:13 +00:00
X86WinCOFFStreamer.cpp MC: split Win64EHUnwindEmitter into a shared streamer 2014-08-07 02:59:41 +00:00