Commit 9d85b485 by Eric Botcazou Committed by Eric Botcazou

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
parent 57ca9c74
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
/* 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" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment