This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11245] [3.4 Regression] __asm__ use generates bad code with current CVS gcc
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2003 23:11:19 -0000
- Subject: [Bug optimization/11245] [3.4 Regression] __asm__ use generates bad code with current CVS gcc
- References: <20030618215131.11245.fnf@ninemoons.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11245
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-06-19 03:40:41 |2003-07-22 23:11:19
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-22 23:11 -------
Here is the reduced sources:
void func ()
{
unsigned long loops=10;
__asm__ __volatile__ (
".set\tnoreorder\n"
"1:\tbnez\t%0,1b\n\t"
"subu\t%0,1\n\t"
".set\treorder"
: "+r" (loops)
);
}
And it works at -O0.
This is with the mainline (20030719).