gcc/testsuite/gcc.target/i386/pr66749.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target ia32 } */ |
| 3 | /* { dg-require-effective-target nonpic } */ |
| 4 | /* { dg-options "-O2 -miamcu -mtune=lakemont" } */ |
| 5 | |
| 6 | char a[10], b[10]; |
| 7 | |
| 8 | int f(int i) |
| 9 | { |
| 10 | return a[i+1] + b[i+1]; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "a\\+1" } } */ |
| 14 | /* { dg-final { scan-assembler "b\\+1" } } */ |