blob: 9cc820fee54bf2ad4ee88d457ad951535cb348a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* PR rtl-optimization/28940 */
/* Origin: Lev Makhlis <lmakhlis@bmc.com> */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2 -mtune=i686" } */
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" } } */
|