Re: [x86 PATCH] Add cbranchti4 pattern to i386.md (for -m32 compare_by_pieces).

2023-06-27 Thread Uros Bizjak via Gcc-patches
On Tue, Jun 27, 2023 at 7:22 PM Roger Sayle wrote: > > > This patch fixes some very odd (unanticipated) code generation by > compare_by_pieces with -m32 -mavx, since the recent addition of the > cbranchoi4 pattern. The issue is that cbranchoi4 is available with > TARGET_AVX, but cbranchti4 is cur

[x86 PATCH] Add cbranchti4 pattern to i386.md (for -m32 compare_by_pieces).

2023-06-27 Thread Roger Sayle
This patch fixes some very odd (unanticipated) code generation by compare_by_pieces with -m32 -mavx, since the recent addition of the cbranchoi4 pattern. The issue is that cbranchoi4 is available with TARGET_AVX, but cbranchti4 is currently conditional on TARGET_64BIT which results in the odd beh