fix a really nasty bug I introduced in r95693: r12 (and r12d,
authorChris Lattner <sabre@nondot.org>
Thu, 11 Feb 2010 08:41:21 +0000 (08:41 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 11 Feb 2010 08:41:21 +0000 (08:41 +0000)
commit5526b699014b0b58e08d7d43e28084589eda26f2
tree4112470d983f9707f44fd85551a1d6ca41bb502e
parentd8735356a36fb04dfcfd9520f9785c0c3739b4a1
fix a really nasty bug I introduced in r95693: r12 (and r12d,
r12b, etc) also encodes to a R/M value of 4, which is just
as illegal as ESP/RSP for the non-sib version an address.

This fixes x86-64 jit miscompilations of a bunch of programs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95866 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86CodeEmitter.cpp
lib/Target/X86/X86MCCodeEmitter.cpp