Currently, only non-negative immediate is allowed prior to a brac expression (memory reference).
MASM / GAS does not have any problem cope with the left side of the real line, so we should be able to as well.
Test: D36230
Paths
| Differential D36229
[X86][Asm] Allow negative immediate to appear before bracketed expression ClosedPublic Authored by coby on Aug 2 2017, 10:27 AM.
Details
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 3 2017, 2:17 PM Comment Actions Needs testcase.
Comment Actions Oh, didn't spot the reference to D36230 for the testcase. It would still be nice to add a testcase to the LLVM repo, though (using "llvm-mc -x86-asm-syntax=intel").
Revision Contents
Diff 109372 include/llvm/MC/MCParser/MCTargetAsmParser.h
lib/Target/X86/AsmParser/X86AsmParser.cpp
|
It looks like this is implicitly truncating Imm from int64_t to int?