This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add testcase for PR rtl-optimization/44174


The regression is fixed on the mainline.

Tested on i586-suse-linux, applied on the mainline


2011-01-27  Eric Botcazou  <ebotcazou@adacore.com>

        PR rtl-optimization/44174
	* gcc.target/i386/asm-6.c: New test.


-- 
Eric Botcazou
/* PR rtl-optimization/44174 */
/* Testcase by Jakub Jelinek <jakub@gcc.gnu.org> */

/* { dg-do compile } */
/* { dg-options "-O2 -fpic" { target fpic } } */

int f0 (int, int, int, int, int);
int f1 (void);

void
f2 (void)
{
  unsigned v1, v2, v3, v4;
  __asm__ ("" : "=a" (v1), "=d" (v2), "=c" (v3), "=r" (v4));
  f0 (f1 (), f1 (), f1 (), f1 (), (v4 >> 8) & 0xff);
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]