small fixup which enables the issuing of the aforementioned instruction (w/o operands...
authorCoby Tayree <coby.tayree@intel.com>
Mon, 21 Nov 2016 15:50:56 +0000 (15:50 +0000)
committerCoby Tayree <coby.tayree@intel.com>
Mon, 21 Nov 2016 15:50:56 +0000 (15:50 +0000)
Differential Revision: https://reviews.llvm.org/D26913

llvm-svn: 287548

llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/MC/X86/intel-syntax.s

index 95661f0..d01e33f 100644 (file)
@@ -2536,7 +2536,7 @@ bool X86AsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
         (Name == "smov" || Name == "smovb" || Name == "smovw" ||
          Name == "smovl" || Name == "smovd" || Name == "smovq"))) &&
       (Operands.size() == 1 || Operands.size() == 3)) {
-    if (Name == "movsd" && Operands.size() == 1)
+    if (Name == "movsd" && Operands.size() == 1 && !isParsingIntelSyntax())
       Operands.back() = X86Operand::CreateToken("movsl", NameLoc);
     AddDefaultSrcDestOperands(TmpOperands, DefaultMemSIOperand(NameLoc),
                               DefaultMemDIOperand(NameLoc));
index 7958936..e5b1f9f 100644 (file)
@@ -77,6 +77,8 @@ _main:
     vpgatherdd XMM10, XMMWORD PTR [R15 + 2*XMM9], XMM8
 // CHECK: movsd -8, %xmm5
     movsd   XMM5, QWORD PTR [-8]
+// CHECK: movsl (%rsi), %es:(%rdi)
+    movsd
 // CHECK: movl %ecx, (%eax)
     mov [eax], ecx
 // CHECK: movl %ecx, (,%ebx,4)