OSDN Git Service

[X86][AsmParser] Don't consider %eip as a valid register outside of 32-bit mode.
authorCraig Topper <craig.topper@intel.com>
Tue, 3 Jul 2018 17:40:51 +0000 (17:40 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 3 Jul 2018 17:40:51 +0000 (17:40 +0000)
commit773b6e54313bbf32633c9c6df6d60b4fffbdf715
treedfed1c3a7389daab7dbf59f037b9dd1e8c3b5a25
parentf438ac9e92f9ed36ade69b510e4b824e6ca42780
[X86][AsmParser] Don't consider %eip as a valid register outside of 32-bit mode.

This might make the error message added in r335668 unneeded, but I'm not sure yet.

The check for RIP is technically unnecessary since RIP is in GR64, but that fact is kind of surprising so be explicit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336217 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/CodeGen/X86/eip-addressing-i386.ll
test/MC/X86/x86_errors.s