This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
testcase for validate_replace_rtx_1 fix.
- To: rth at cygnus dot com, gcc-patches at gcc dot gnu dot org
- Subject: testcase for validate_replace_rtx_1 fix.
- From: Jan Hubicka <jh at suse dot cz>
- Date: Mon, 9 Oct 2000 20:52:17 +0200
Hi
I've managed to create usefull testcase for validate_replace_rtx_1 bug
I sent patch to last week. It gets gcse to create incorrect REG_EQUAL
note containing (sign_extend:SI (const_int 255)) by forcing chained
simplification of (sign_extend:SI (subreg:QI (reg:SI))) after replacing
the reg by constant. This simplification is missed.
Hope that the patch will be now easier to review and we may want to install
the testcase.
int b=1;
main()
{
int a;
int c;
a=0xff;
for (;b;b--)
{
c=1;
asm(""::"r"(c));
c=(char)a;
}
if (c!=-1)
abort();
return c;
}