On 11/22/26 1:03 PM, Andrea Pinski wrote:
On Sun, Nov 22, 2026 at 11:30 AM Daniel Petrovic <[email protected]> wrote:
Hi Jeff,

Thanks for committing the patch and for tracking down the regression.

I'll try to reproduce that regression and figure this out. I’m not sure how 
long the investigation will take, so I’m fine with reverting the patch in the 
meantime.
Ok, I can reproduce the regression on x86_64 though there is no testcase for it.
See https://godbolt.org/z/4dqzjeEcj for the full testcase.
As you can see GCC 16.2.0 can detect the SAT_ADD while the trunk does not.
Thanks.   I didn't have time to chase that aspect down this morning.


As an aside, it would be useful to move/copy some of these SAT_ADD
detection testcases to be in the vect.exp testsuite with the
appropriate target supports and scanning for SAT_ADD.
Totally agreed.  I think Pan has a ton of fairly generic tests in place.   I think my biggest concern would be whether or not generation of SAT_WHATVER in gimple is dependent upon the existence of a pattern in the target via the optabs interfaces.  If so the tests would need some kind of target selector.  Solvable, of course.   Secondary concerns would be 16bit safety which is also easily solvable.

Given the coverage from Pan's tests, I think everyone benefits by getting as many of them out of the risc-v subdirectory and into a generic location so that we're not dependent upon RISC-V to detect these issues.

Jeff

Reply via email to