summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr66749.c
blob: 27c02ad5053bb8003ce1c60cb7ca66e4b9048f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2 -miamcu -mtune=lakemount" } */

char a[10], b[10];

int f(int i)
{
  return a[i+1] + b[i+1];
}

/* { dg-final { scan-assembler "a\\+1" } } */
/* { dg-final { scan-assembler "b\\+1" } } */