Add -march=iamcu to optimize for IA MCU
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr66749.c
blobaffda08de871caa83fc69f1d74286a1435cbcf47
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-require-effective-target nonpic } */
4 /* { dg-options "-O2 -miamcu -mtune=iamcu" } */
6 char a[10], b[10];
8 int f(int i)
10 return a[i+1] + b[i+1];
13 /* { dg-final { scan-assembler "a\\+1" } } */
14 /* { dg-final { scan-assembler "b\\+1" } } */