PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / thumb2-replicated-constant4.c
blob24efdcf34e2f56fe1240f59bd672dcc19152e429
1 /* Ensure replicated constants don't make things worse. */
2 /* { dg-options "-mthumb -O2" } */
3 /* { dg-require-effective-target arm_thumb2_ok } */
5 int
6 foo1 (int a)
8 /* It might be tempting to use 0x01000100, but it wouldn't help. */
9 return a + 0x01f001e0;
12 /* { dg-final { scan-assembler "add.*#32505856" } } */
13 /* { dg-final { scan-assembler "add.*#480" } } */
15 int
16 foo2 (int a)
18 return a + 0x0f100e10;
21 /* { dg-final { scan-assembler "add.*#252706816" } } */
22 /* { dg-final { scan-assembler "add.*#3600" } } */