fix rdar://8456361 - llvm-mc rejects 'rep movsd'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-09-22 03:50:32 +00:00
parent 492a43e6f6
commit 61129252e4
2 changed files with 11 additions and 0 deletions

View File

@ -1009,6 +1009,12 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
NameLoc);
}
// movsd -> movsl (when no operands are specified).
if (Name == "movsd" && Operands.size() == 1) {
delete Operands[0];
Operands[0] = X86Operand::CreateToken("movsl", NameLoc);
}
return false;
}

View File

@ -83,6 +83,11 @@
// CHECK: movsb
rep;movsb
// rdar://8456361
// CHECK: rep
// CHECK: movsl
rep movsd
// CHECK: rep
// CHECK: lodsb
rep;lodsb