From df967d613704d4e4f01ecce85c1846dfab4d9a1b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 27 Sep 2010 07:11:53 +0000 Subject: [PATCH] fix rdar://8470918 - llvm-mc can't assemble smovl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114819 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmParser/X86AsmParser.cpp | 4 ++++ test/MC/AsmParser/X86/x86_instructions.s | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index 698e282f265..8252ea9732c 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -634,6 +634,10 @@ ParseInstruction(StringRef Name, SMLoc NameLoc, .Case("repnz", "repne") .Case("iret", "iretl") .Case("sysret", "sysretl") + .Case("smovb", "movsb") + .Case("smovw", "movsw") + .Case("smovl", "movsl") + .Case("smovq", "movsq") .Case("push", Is64Bit ? "pushq" : "pushl") .Case("pop", Is64Bit ? "popq" : "popl") .Case("pushf", Is64Bit ? "pushfq" : "pushfl") diff --git a/test/MC/AsmParser/X86/x86_instructions.s b/test/MC/AsmParser/X86/x86_instructions.s index dda047e6fdb..d16dc9d72b5 100644 --- a/test/MC/AsmParser/X86/x86_instructions.s +++ b/test/MC/AsmParser/X86/x86_instructions.s @@ -83,6 +83,13 @@ // CHECK: movsb rep;movsb + +// rdar://8470918 +smovb // CHECK: movsb +smovw // CHECK: movsw +smovl // CHECK: movsl +smovq // CHECK: movsq + // rdar://8456361 // CHECK: rep // CHECK: movsl