https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96757
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Sandiford <rsand...@gcc.gnu.org>: https://gcc.gnu.org/g:91d80cf4bd2827dd9c40fe6a7c719c909d79083d commit r11-3819-g91d80cf4bd2827dd9c40fe6a7c719c909d79083d Author: Duan bo <duan...@huawei.com> Date: Mon Oct 12 12:32:57 2020 +0100 vect: Fix an ICE in vect_recog_mask_conversion_pattern When processing the cond expression, vect_recog_mask_conversion_pattern doesn't consider the situation that two operands of rhs1 are different vectypes, leading to a vect ICE. This patch adds the identification and handling of the situation to fix the problem. gcc/ChangeLog: PR target/96757 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Add the identification and handling of the dropped situation in the cond expression processing phase. gcc/testsuite/ChangeLog: PR target/96757 * gcc.target/aarch64/pr96757.c: New test.