fix rdar://8470918 - llvm-mc can't assemble smovl
authorChris Lattner <sabre@nondot.org>
Mon, 27 Sep 2010 07:11:53 +0000 (07:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Sep 2010 07:11:53 +0000 (07:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114819 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/AsmParser/X86/x86_instructions.s

index 698e282f265f75e29c128dc47e571d091634f688..8252ea9732cdd257f750d5f980d68ca4f1107c67 100644 (file)
@@ -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")
index dda047e6fdbb2c02dc99e9aac7908b7b3329d9bd..d16dc9d72b5073383662f0c96ac39bb531f942e1 100644 (file)
 // CHECK: movsb
         rep;movsb
 
+
+// rdar://8470918
+smovb // CHECK: movsb
+smovw // CHECK: movsw
+smovl // CHECK: movsl
+smovq // CHECK: movsq
+
 // rdar://8456361
 // CHECK: rep
 // CHECK: movsl