commit | 61129252e44067ae112dc856c64c814344b7e7c9 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Sep 22 03:50:32 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Sep 22 03:50:32 2010 +0000 |
tree | f821815df00dbb28e5292c6452af348b55e90746 | |
parent | 492a43e6f64997a0ab26ef047dced193931fda85 [diff] [blame] |
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
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index 8196718..4c51ed6 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -1009,6 +1009,12 @@ 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; }