diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-05-04 17:31:02 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-04 17:31:02 +0000 |
| commit | c3e0bafc6defe9afaacbc066fd14ccf52a1c669a (patch) | |
| tree | 787569369e5602efc08f3492324580798b387844 /llvm/lib | |
| parent | cd121fb0137d628527f40d8e980bc61b81119f66 (diff) | |
| download | bcm5719-llvm-c3e0bafc6defe9afaacbc066fd14ccf52a1c669a.tar.gz bcm5719-llvm-c3e0bafc6defe9afaacbc066fd14ccf52a1c669a.zip | |
MC/X86: Chris pointed that 'as' isn't consistent in accepting the long form of
instructions which have no direct register usage.
Darwin 'as' accepts:
add $0, (%rax)
but rejects
mov $0, (%rax)
for example.
Given that, only accept suffix matches which match exactly one form. We still
need to emit nice diagnostics for failures...
llvm-svn: 103015
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index aaa1c0620ba..6b403c10a1e 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -683,11 +683,6 @@ X86ATTAsmParser::MatchInstruction(const SmallVectorImpl<MCParsedAsmOperand*> if (MatchB + MatchW + MatchL == 2) return false; - // Similarly, if all three matched then we assume this is a generic operation - // involving memory, and take the 'l' form (to match 'gas'). - if (MatchB + MatchW + MatchL == 0) - return false; - // Otherwise, the match failed. return true; } |

