[x86] Add basic support for .code16
authorCraig Topper <craig.topper@gmail.com>
Mon, 6 Jan 2014 04:55:54 +0000 (04:55 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 6 Jan 2014 04:55:54 +0000 (04:55 +0000)
commit93c9401dff386e7684c859a6c67602a1f34d3402
tree223ff3a1e043fda43e9190495e6789c60b2ea940
parent3b83083711284c2cc50947ead90d9d049bbdcd4b
[x86] Add basic support for .code16

This is not really expected to work right yet. Mostly because we will
still emit the OpSize (0x66) prefix in all the wrong places, along with
a number of other corner cases. Those will all be fixed in the subsequent
commits.

Patch from David Woodhouse.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198584 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
lib/Target/X86/X86.td
lib/Target/X86/X86InstrInfo.td
lib/Target/X86/X86Subtarget.cpp
lib/Target/X86/X86Subtarget.h
test/MC/X86/address-size.s
test/MC/X86/x86-16.s [new file with mode: 0644]