fix X86 encoder to output [disp] only addresses with no SIB byte
authorChris Lattner <sabre@nondot.org>
Tue, 9 Feb 2010 21:47:19 +0000 (21:47 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Feb 2010 21:47:19 +0000 (21:47 +0000)
commit9e8528fc5cd7426884c1708d921d4608ac3878b7
treec6d803f03f7a4f3fc5996a107a5ef91f04aaebd7
parent415326b4edcc967dfb03c5ab41923b195e7c3cb1
fix X86 encoder to output [disp] only addresses with no SIB byte
in X86-32 mode.  This is still required in x86-64 mode to avoid
forming [disp+rip] encoding.  Rewrite the SIB byte decision logic
to be actually understandable.

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