From f776822506b417ce25170c67c33cc05870b37adf Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 22 Mar 2018 08:29:45 +0100 Subject: x86: fold a few XOP templates Also add a new test case verifying that mixed operands of SIMD insns with a size-less memory operand in the middle are properly rejected. --- gas/config/tc-i386.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index e94e01c..01365f3 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5510,10 +5510,14 @@ check_reverse: case 4: if (!operand_type_match (overlap3, i.types[3]) || (check_register - && !operand_type_register_match (i.types[2], - operand_types[2], - i.types[3], - operand_types[3]))) + && (!operand_type_register_match (i.types[1], + operand_types[1], + i.types[3], + operand_types[3]) + || !operand_type_register_match (i.types[2], + operand_types[2], + i.types[3], + operand_types[3])))) continue; /* Fall through. */ case 3: -- cgit v1.1