This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21535] Empty inline assembly cause the generated code to be wrong?
- From: "yhlin at sdesigns dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2005 20:44:17 -0000
- Subject: [Bug target/21535] Empty inline assembly cause the generated code to be wrong?
- References: <20050512175612.21535.yhlin@sdesigns.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From yhlin at sdesigns dot com 2005-05-17 20:44 -------
Reading the output assembly twice, it's true that they are equivalent, it's
just that the div is run in the branch delay slot of bnez in the firt case.
It seems we need strict prologue/epilogue for __asm__ statements like
.set noreorder
.set nomacro
.set push
...
assembly stuff
...
.set pop
to have exact same code generated?
As a result, the bug is mared as invalid.
Thanks for the help.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21535