mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
small fixup which enables the issuing of the aforementioned instruction (w/o operands), on MS/Intel syntax.
Differential Revision: https://reviews.llvm.org/D26913 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287548 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user