https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120168
Bug ID: 120168
Summary: [16 Regression] gcc.dg/tree-ssa/pr31261.c fails now on
targets which char defaults to unsigned char
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: testsuite-fail
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: aarch64
https://gcc.gnu.org/pipermail/gcc-testresults/2025-May/846330.html
FAIL: gcc.dg/tree-ssa/pr31261.c scan-tree-dump-times original "return
\\\\(char\\\\) -\\\\(unsigned char\\\\) c & 31;" 1
This is just an issue with the testcase.
char here is unsigned char so you only need one cast.
I am 99% sure this started with r16-400-g5e363ffefaceb9.