]> matita.cs.unibo.it Git - pkg-cerco/acc.git/blob - tests/GCCTestSuite/sparc-constant-1.c
Package description and copyright added.
[pkg-cerco/acc.git] / tests / GCCTestSuite / sparc-constant-1.c
1 /* PR optimization/10876 */
2 /* { dg-do compile { target sparc*-*-* } } */
3
4 /* Verify that adding the constant 4096 is turned
5    into substracting the constant -4096. */
6
7 int foo(int a)
8 {
9   return a+4096;
10 }
11
12 /* { dg-final { scan-assembler "sub" } } */