aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-27 07:21:41 +0000
committerChris Lattner <sabre@nondot.org>2010-09-27 07:21:41 +0000
commitb1162fc05e09c7247be1896fd4aa4ca7e76c938c (patch)
treefc90890d621f4819900e0456e206440ad99c6177
parentdf967d613704d4e4f01ecce85c1846dfab4d9a1b (diff)
downloadexternal_llvm-b1162fc05e09c7247be1896fd4aa4ca7e76c938c.zip
external_llvm-b1162fc05e09c7247be1896fd4aa4ca7e76c938c.tar.gz
external_llvm-b1162fc05e09c7247be1896fd4aa4ca7e76c938c.tar.bz2
add a couple more aliases, rdar://8456378
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114821 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/AsmParser/X86AsmParser.cpp2
-rw-r--r--test/MC/AsmParser/X86/x86_instructions.s5
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 8252ea9..da37665 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -634,6 +634,8 @@ ParseInstruction(StringRef Name, SMLoc NameLoc,
.Case("repnz", "repne")
.Case("iret", "iretl")
.Case("sysret", "sysretl")
+ .Case("cwde", "cwtl")
+ .Case("cdqe", "cltq")
.Case("smovb", "movsb")
.Case("smovw", "movsw")
.Case("smovl", "movsl")
diff --git a/test/MC/AsmParser/X86/x86_instructions.s b/test/MC/AsmParser/X86/x86_instructions.s
index d16dc9d..cb6811a 100644
--- a/test/MC/AsmParser/X86/x86_instructions.s
+++ b/test/MC/AsmParser/X86/x86_instructions.s
@@ -397,4 +397,9 @@ clr %di
clr %esi
clr %rsi
+// rdar://8456378
+cltq // CHECK: cltq
+cdqe // CHECK: cltq
+cwde // CHECK: cwtl
+cwtl // CHECK: cwtl