summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr66749.c
blob: adc3fbba4ec7ab19417afc095c888f9f44677163 (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=lakemont" } */

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" } } */