Allow a slash, '/', as a prefix separator for X86. rdar://8741045

llvm-svn: 121320
This commit is contained in:
Kevin Enderby 2010-12-08 23:57:59 +00:00
parent 8c5f0c3115
commit 87bc591fc5
2 changed files with 7 additions and 0 deletions

View File

@ -758,6 +758,8 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
if (getLexer().is(AsmToken::EndOfStatement))
Parser.Lex(); // Consume the EndOfStatement
else if (isPrefix && getLexer().is(AsmToken::Slash))
Parser.Lex(); // Consume the prefix separator Slash
// This is a terrible hack to handle "out[bwl]? %al, (%dx)" ->
// "outb %al, %dx". Out doesn't take a memory form, but this is a widely

View File

@ -738,6 +738,11 @@ lock incl 1(%rsp)
// CHECK: lock
// CHECK: incl 1(%rsp)
// rdar://8741045
lock/incl 1(%rsp)
// CHECK: lock
// CHECK: incl 1(%rsp)
// rdar://8033482
rep movsl
// CHECK: rep