[llvm-commits] [llvm] r114526 - in /llvm/trunk: lib/Target/X86/AsmParser/X86AsmParser.cpp test/MC/AsmParser/X86/x86_instructions.s
Chris Lattner
sabre at nondot.org
Tue Sep 21 20:50:33 PDT 2010
Author: lattner
Date: Tue Sep 21 22:50:32 2010
New Revision: 114526
URL: http://llvm.org/viewvc/llvm-project?rev=114526&view=rev
Log:
fix rdar://8456361 - llvm-mc rejects 'rep movsd'
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=114526&r1=114525&r2=114526&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Tue Sep 21 22:50:32 2010
@@ -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;
}
Modified: llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s?rev=114526&r1=114525&r2=114526&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s (original)
+++ llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s Tue Sep 21 22:50:32 2010
@@ -83,6 +83,11 @@
// CHECK: movsb
rep;movsb
+// rdar://8456361
+// CHECK: rep
+// CHECK: movsl
+ rep movsd
+
// CHECK: rep
// CHECK: lodsb
rep;lodsb
More information about the llvm-commits
mailing list