Re: [PATCH v2] rs6000: Avoid undefined behavior caused by overflow and invalid shifts

2025-07-30 Thread Segher Boessenkool
Hi! On Wed, Jul 30, 2025 at 01:12:27PM +0530, Kishan Parmar wrote: > PR target/118890 > * config/rs6000/rs6000.cc (can_be_rotated_to_negative_lis): Avoid left > shift of Line too long, changelog lines are only 80 character positions max. > negative value and guard shift count.

[PATCH v2] rs6000: Avoid undefined behavior caused by overflow and invalid shifts

2025-07-30 Thread Kishan Parmar
Hello, Changes from V1: * Replaced INTVAL with UINTVAL as suggested by Segher. * Fixed whitespace and formatting issues. * Rebased patch on trunk. * Reworded commit message to follow standards. While building GCC with --with-build-config=bootstrap-ubsan on powerpc64le-unknown-linux-gnu, multiple