Re: [PATCH] vect: Fix wrong check in vect_recog_mulhs_pattern [PR101596]

2021-07-27 Thread Richard Biener via Gcc-patches
On Tue, Jul 27, 2021 at 5:21 AM Kewen.Lin wrote: > > Hi, > > As PR101596 showed, vect_recog_mulhs_pattern uses target_precision to > check the scale_term is expected or not, it could be wrong when the > precision of the actual used new_type larger than target_precision as > shown by the example.

[PATCH] vect: Fix wrong check in vect_recog_mulhs_pattern [PR101596]

2021-07-26 Thread Kewen.Lin via Gcc-patches
Hi, As PR101596 showed, vect_recog_mulhs_pattern uses target_precision to check the scale_term is expected or not, it could be wrong when the precision of the actual used new_type larger than target_precision as shown by the example. This patch is to use precision of new_type instead of