Fix intel syntax special case identifier operands that refer to a constant
(e.g. .set <ID> n) to be interpreted as immediate not memory in parsing.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
What about this case:
.set FOO 2 cmp eax, FOO [eax]
Does gas assemble that to cmpl %eax, 2(%eax), or does it reject?
lib/Target/X86/AsmParser/X86AsmParser.cpp | ||
---|---|---|
1441 | Can you add a few negative tests exercising these errors? Look at how intel-syntax-ambiguous.s tests erroneous input. |
Can you add a few negative tests exercising these errors? Look at how intel-syntax-ambiguous.s tests erroneous input.