x32. Fixes a bug in i8mem_NOREX declaration.
authorDerek Schuff <dschuff@google.com>
Tue, 8 Sep 2015 19:47:15 +0000 (19:47 +0000)
committerDerek Schuff <dschuff@google.com>
Tue, 8 Sep 2015 19:47:15 +0000 (19:47 +0000)
commitc76507d03c22b3ba0cfeba87a505c5bad1128fb4
tree71281b28b1f19905824d8b1431324f6dfc89323b
parent626338d11e0648942edac61d00f5bd59302c2382
x32. Fixes a bug in i8mem_NOREX declaration.

The old implementation assumed LP64 which is broken for x32.  Specifically, the
MOVE8rm_NOREX and MOVE8mr_NOREX, when selected, would cause a 'Cannot emit
physreg copy instruction' error message to be reported.

This patch also enable the h-register*ll tests for x32.

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

Patch by João Porto

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247058 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.td
lib/Target/X86/X86RegisterInfo.cpp
test/CodeGen/X86/h-register-store.ll
test/CodeGen/X86/h-registers-0.ll
test/CodeGen/X86/h-registers-1.ll
test/CodeGen/X86/h-registers-3.ll