Re: [PATCH] vect-patterns: Fix up vect_recog_rotate_pattern [PR108064]

2022-12-13 Thread Richard Biener via Gcc-patches
> Am 13.12.2022 um 10:28 schrieb Jakub Jelinek via Gcc-patches > : > > Hi! > > Since vect_recog_rotate_pattern has been extended to work also > on signed types in r13-1100 we miscompile the testcase below. > vect_recog_rotate_pattern actually emits correct scalar code into > the pattern def

[PATCH] vect-patterns: Fix up vect_recog_rotate_pattern [PR108064]

2022-12-13 Thread Jakub Jelinek via Gcc-patches
Hi! Since vect_recog_rotate_pattern has been extended to work also on signed types in r13-1100 we miscompile the testcase below. vect_recog_rotate_pattern actually emits correct scalar code into the pattern def sequence (in particular cast to utype, doing the 2 shifts in utype so that the right sh