[MC][X86] Enhance X86 Register expression handling to more closely match GCC.
authorNirav Dave <niravd@google.com>
Thu, 16 Aug 2018 16:31:14 +0000 (16:31 +0000)
committerNirav Dave <niravd@google.com>
Thu, 16 Aug 2018 16:31:14 +0000 (16:31 +0000)
commit7fd992a75502b7eb251daa1b1e4d23a73fa76d53
treeddb8e0443e78bb8ff728f61b6d11787c1de8e707
parentd78fe2f46d850c59781a11e3ce275d5210185a4d
[MC][X86] Enhance X86 Register expression handling to more closely match GCC.

Allow the comparison of x86 registers in the evaluation of assembler
directives. This generalizes and simplifies the extension from r334022
to catch another case found in the Linux kernel.

Reviewers: rnk, void

Reviewed By: rnk

Subscribers: hiraditya, nickdesaulniers, llvm-commits

Differential Revision: https://reviews.llvm.org/D50795

llvm-svn: 339895
llvm/include/llvm/MC/MCExpr.h
llvm/include/llvm/MC/MCParser/MCAsmParserUtils.h
llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
llvm/lib/MC/MCExpr.cpp
llvm/lib/MC/MCParser/AsmParser.cpp
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/lib/Target/X86/MCTargetDesc/X86MCExpr.h
llvm/test/MC/X86/pr37425.s