https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77888
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Rather it is just this testcase:
bool f(int i, int zone, int MaxChassisFanZoneNum)
{
if (i <= zone?zone:MaxChassisFanZoneNum)
return 1;
return 0;
}