This is an archive of the discontinued LLVM Phabricator instance.

[MC][X86] Fix Intel Operand assembly parsing for .set ids
ClosedPublic

Authored by niravd on Jul 20 2016, 1:10 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

niravd updated this revision to Diff 64740.Jul 20 2016, 1:10 PM
niravd retitled this revision from to [MC][X86] Fix Intel Operand assembly parsing for .set ids.
niravd added a reviewer: rnk.
niravd updated this object.
niravd added a subscriber: llvm-commits.
rnk edited edge metadata.Jul 20 2016, 1:56 PM

What about this case:

.set FOO 2
cmp eax, FOO [eax]

Does gas assemble that to cmpl %eax, 2(%eax), or does it reject?

niravd updated this revision to Diff 65122.Jul 22 2016, 12:03 PM
niravd edited edge metadata.

Add FOO[...] case folding in subsequent cleanup patch

rnk added inline comments.Jul 26 2016, 4:32 PM
lib/Target/X86/AsmParser/X86AsmParser.cpp
1439 ↗(On Diff #65122)

Can you add a few negative tests exercising these errors? Look at how intel-syntax-ambiguous.s tests erroneous input.

niravd updated this revision to Diff 65756.Jul 27 2016, 9:29 AM
niravd marked an inline comment as done.

Add variants of relevant clang testsuite to llvm testsuite.

rnk accepted this revision.Jul 27 2016, 9:39 AM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Jul 27 2016, 9:39 AM
This revision was automatically updated to reflect the committed changes.