[X86] Mark the AAD and AAM aliases as not valid in 64-bit mode.
authorCraig Topper <craig.topper@gmail.com>
Tue, 13 Oct 2015 05:12:07 +0000 (05:12 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 13 Oct 2015 05:12:07 +0000 (05:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250148 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index b54e3ded8438ac5a6a945c1f1affa637ae0c3d85..d1973c5d8b39c0ef93596d4017585682704886be 100644 (file)
@@ -2687,8 +2687,8 @@ defm : IntegerCondCodeMnemonicAlias<"cmov", "", "intel">;
 //===----------------------------------------------------------------------===//
 
 // aad/aam default to base 10 if no operand is specified.
-def : InstAlias<"aad", (AAD8i8 10)>;
-def : InstAlias<"aam", (AAM8i8 10)>;
+def : InstAlias<"aad", (AAD8i8 10)>, Requires<[Not64BitMode]>;
+def : InstAlias<"aam", (AAM8i8 10)>, Requires<[Not64BitMode]>;
 
 // Disambiguate the mem/imm form of bt-without-a-suffix as btl.
 // Likewise for btc/btr/bts.