PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / get_address_cost_aligned_max_offset.c
blobcc3e2f778321345f843642b25d891252d1b8cb7c
1 /* { dg-do compile } */
2 /* { dg-options "-mthumb -O2" } */
3 /* { dg-require-effective-target arm_thumb1_ok } */
5 unsigned int
6 test (const short p16[6 * 64])
8 unsigned int i = 6;
9 unsigned int ret = 0;
13 unsigned long long *p64 = (unsigned long long*) p16;
14 unsigned int *p32 = (unsigned int*) p16;
15 ret += ret;
16 if (p16[1] || p32[1])
17 ret++;
18 else if (p64[1] | p64[2] | p64[3])
19 ret++;
20 p16 += 64;
21 i--;
22 } while (i != 0);
24 return ret;
27 /* { dg-final { scan-assembler-not "#22" } } */
28 /* { dg-final { scan-assembler-not "#14" } } */