PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / thumb2-replicated-constant3.c
blobeb6ad443c539d40d11a364882bd5e426b9d8f7da
1 /* Ensure negated/inverted replicated constant immediates work. */
2 /* { dg-options "-mthumb -O2" } */
3 /* { dg-require-effective-target arm_thumb2_ok } */
5 int
6 foo1 (int a)
8 return a | 0xffffff00;
11 /* { dg-final { scan-assembler "orn.*#255" } } */
13 int
14 foo2 (int a)
16 return a & 0xffeeffee;
19 /* { dg-final { scan-assembler "bic.*#1114129" } } */
21 int
22 foo3 (int a)
24 return a & 0xaaaaaa00;
27 /* { dg-final { scan-assembler "and.*#-1431655766" } } */
28 /* { dg-final { scan-assembler "bic.*#170" } } */