190075Sobrien/* PR optimization/10876 */ 290075Sobrien 390075Sobrien/* { dg-do compile } */ 490075Sobrien 518334Speter/* Verify that adding the constant 4096 is turned 690075Sobrien into subtracting the constant -4096. */ 7 8int foo(int a) 9{ 10 return a+4096; 11} 12 13/* { dg-final { scan-assembler "sub" } } */ 14