x86: Simplify check for distinct TMM register operands
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 28 Jul 2021 17:42:47 +0000 (10:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 28 Jul 2021 17:42:47 +0000 (10:42 -0700)
commitfc141319027485a7cfcbae2451b048ddc6c33b48
tree7dc2fd46fdb0412ceeba96151391899c3c08f10e
parent7dc37e1e1209c80e0bab784df6b6bac335e836f2
x86: Simplify check for distinct TMM register operands

If any pair of operands in AMX instructions with 3 TMM register operands
are the same, the instruction will UD.  Don't call register_number to
check for distinct TMM register operands since all TMM register operands
have the same size.

* config/tc-i386.c (check_VecOperands): Remove register_number
call when checking for distinct TMM register operands.
gas/config/tc-i386.c