Re: [PATCH v1] rs6000: Fix UBSAN runtime errors for powerpc64le-unknown-linux-gnu

2025-06-26 Thread Segher Boessenkool
Hi! [ Please don't say "patch v1", it's just clutter. ] The point of the patch is to improve some code that evokes undefined behaviour. The sanitizer for that is how these problems were found, you can remark that somewhere later in the message, but ubsan is not what this patch is about, it does

[PATCH v1] rs6000: Fix UBSAN runtime errors for powerpc64le-unknown-linux-gnu

2025-06-26 Thread Kishan Parmar
Hi All, The following patch has been bootstrapped and regtested on powerpc64le-linux. While building GCC with --with-build-config=bootstrap-ubsan on powerpc64le-unknown-linux-gnu, multiple UBSAN runtime errors were encountered in rs6000.cc and rs6000.md due to undefined behavior involving left sh