This is the mail archive of the gcc-bugs@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]

[Bug optimization/11245] [3.4 Regression] __asm__ use generates bad code with current CVS gcc


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).


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