re PR rtl-optimization/28940 (address selection does not work correctly)
PR rtl-optimization/28940 * gcc.target/i386/addr-sel-1.c: New test. From-SVN: r129868
This commit is contained in:
parent
57ca9c742a
commit
9d85b4853b
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||
|
||||
PR rtl-optimization/28940
|
||||
* gcc.target/i386/addr-sel-1.c: New test.
|
||||
|
||||
2007-11-03 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/33670
|
||||
|
|
16
gcc/testsuite/gcc.target/i386/addr-sel-1.c
Normal file
16
gcc/testsuite/gcc.target/i386/addr-sel-1.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* PR rtl-optimization/28940 */
|
||||
/* Origin: Lev Makhlis <lmakhlis@bmc.com> */
|
||||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target ilp32 } */
|
||||
/* { 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" } } */
|
Loading…
Add table
Reference in a new issue