From 0989d29d093c281a0d8b4f1b1ea22436249c4087 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 11 Sep 2010 17:08:22 +0000 Subject: [PATCH] add a missed cmov alias, part of rdar://8416805 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113693 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmParser/X86AsmParser.cpp | 2 ++ test/MC/AsmParser/X86/x86_32-new-encoder.s | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index 19e7ee2ba13..6a664ad4ce1 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -654,6 +654,8 @@ ParseInstruction(StringRef Name, SMLoc NameLoc, // Condition code aliases for 16-bit, 32-bit, 64-bit and unspec operands. .Case("cmovcw", "cmovbw") .Case("cmovcl", "cmovbl") .Case("cmovcq", "cmovbq") .Case("cmovc", "cmovb") + .Case("cmovnaew","cmovbw") .Case("cmovnael","cmovbl") + .Case("cmovnaeq","cmovbq") .Case("cmovnae", "cmovb") .Case("cmovnaw", "cmovbew").Case("cmovnal", "cmovbel") .Case("cmovnaq", "cmovbeq").Case("cmovna", "cmovbe") .Case("cmovnbw", "cmovaew").Case("cmovnbl", "cmovael") diff --git a/test/MC/AsmParser/X86/x86_32-new-encoder.s b/test/MC/AsmParser/X86/x86_32-new-encoder.s index 16978f7d1b9..f9cb206b6a6 100644 --- a/test/MC/AsmParser/X86/x86_32-new-encoder.s +++ b/test/MC/AsmParser/X86/x86_32-new-encoder.s @@ -107,6 +107,10 @@ retl // CHECK: encoding: [0x0f,0x42,0xd0] cmovbl %eax,%edx +// CHECK: cmovbw %bx, %bx +cmovnae %bx,%bx + + // CHECK: cmovbel %eax, %edx // CHECK: encoding: [0x0f,0x46,0xd0] cmovbel %eax,%edx -- 2.34.1