1/* PR rtl-optimization/57829 */ 2 3__attribute__((noinline, noclone)) 4int 5f1 (int k) 6{ 7 return 2 | ((k - 1) >> ((int) sizeof (int) * __CHAR_BIT__ - 1)); 8} 9 10__attribute__((noinline, noclone)) 11long int 12f2 (long int k) 13{ 14 return 2L | ((k - 1L) >> ((int) sizeof (long int) * __CHAR_BIT__ - 1)); 15} 16 17__attribute__((noinline, noclone)) 18int 19f3 (int k) 20{ 21 k &= 63; 22 return 4 | ((k + 2) >> 5); 23} 24 25int 26main () 27{ 28 if (f1 (1) != 2 || f2 (1L) != 2L || f3 (63) != 6 || f3 (1) != 4) 29 __builtin_abort (); 30 return 0; 31} 32