https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108604
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:78d6489f736963a8a07c494294c72662c49e8e63 commit r13-5528-g78d6489f736963a8a07c494294c72662c49e8e63 Author: Xianmiao Qu <cooper...@linux.alibaba.com> Date: Tue Jan 31 09:49:06 2023 +0100 testsuite/108604 - gcc.dg/torture/pr108574-3.c hangs on unsigned char archs In the architecture where sign defaults to unsigned, the 'f' will be zero extended to int type in the expression 'd = ~(f & ~2880764155)', then the 'd' will become -1 wich cause the case to fail. So it's ok for the architectures where sign defaults to signed like x86, but failed for the architectures where sign defaults to unsigned like arm and csky. Change char to signed char to avoid this problem. PR testsuite/108604 gcc/testsuite: * gcc.dg/torture/pr108574-3.c (b, f): Change type from char to signed char.