Rework segment prefix emission code to handle segments
authorChris Lattner <sabre@nondot.org>
Thu, 8 Jul 2010 22:28:12 +0000 (22:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Jul 2010 22:28:12 +0000 (22:28 +0000)
commit834df19452a551195ab012a8923b646b9a57a0d9
tree0a915812dca08a101ab5a5a4ba81468f95b3ed45
parent751e1123cecc4b5c2a86849bb39de317b396c303
Rework segment prefix emission code to handle segments
in memory operands at the same type as hard coded segments.
This fixes problems where we'd emit the segment override after
the REX prefix on instructions like:
mov %gs:(%rdi), %rax

This fixes rdar://8127102.  I have several cleanup patches coming
next.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107917 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86MCCodeEmitter.cpp
test/MC/AsmParser/X86/x86_64-encoding.s