[X86] Remove unnecessary In64BitMode predicate from TEST64ri32. NFC
authorCraig Topper <craig.topper@intel.com>
Thu, 11 Jun 2020 07:31:28 +0000 (00:31 -0700)
committerCraig Topper <craig.topper@intel.com>
Thu, 11 Jun 2020 07:33:55 +0000 (00:33 -0700)
This appears to have been added when In64BitMode was added to a
bunch of instructions that don't have register operands. When an
instruction uses a register the parser will prevent a 64-bit
register from being parsed on a 32-bit target. But with only
memory and immediate operands this doesn't happen.

TEST64ri32 does have a register operand so the issue the predicate
was supposed to fix doesn't apply.

llvm/lib/Target/X86/X86InstrArithmetic.td

index 8bb3b75..d54b5d2 100644 (file)
@@ -1247,7 +1247,6 @@ let isCompare = 1 in {
     def TEST8ri    : BinOpRI_F<0xF6, "test", Xi8 , X86testpat, MRM0r>;
     def TEST16ri   : BinOpRI_F<0xF6, "test", Xi16, X86testpat, MRM0r>;
     def TEST32ri   : BinOpRI_F<0xF6, "test", Xi32, X86testpat, MRM0r>;
-    let Predicates = [In64BitMode] in
     def TEST64ri32 : BinOpRI_F<0xF6, "test", Xi64, X86testpat, MRM0r>;
 
     def TEST8mi    : BinOpMI_F<0xF6, "test", Xi8 , X86testpat, MRM0m>;