[Bug target/92865] [10 Regression] error: unrecognizable insn: in extract_insn, at recog.c:2294 since r279107

crazylht at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 9 11:13:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92865

--- Comment #3 from Hongtao.liu <crazylht at gmail dot com> ---
Since TARGET_XOP only supports 128-bit vector compare, ix86_valid_mask_cmp_mode
should also handle 256/512-bit vector compare when avx512f is avalable.


untested patch

@@ -3428,7 +3428,7 @@ static bool
 ix86_valid_mask_cmp_mode (machine_mode mode)
 {
   /* XOP has its own vector conditional movement.  */
-  if (TARGET_XOP)
+  if (TARGET_XOP && GET_MODE_SIZE (mode) == 128)
     return false;

   /* AVX512F is needed for mask operation.  */

I'll add some testcase later.


More information about the Gcc-bugs mailing list