https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31386
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
--- Comment #3 from ramiro at lisha dot ufsc dot br 2007-04-02 21:24
---
Hello,
That and many other combinations fix the issue. Including changing the code
around the inline asm, or using different optimizations.
What seems wrong is that gcc uses the same register for 2 outputs. Maybe
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-28 22:49 ---
Actually I think the inline-asm should be:
#define CMOV_COMBO( val1, val2 ) \
asm volatile ( \
"cmpl %0, %3\n\t" \
"cmovl %3, %0\n\t" \
--- Comment #1 from ramiro at lisha dot ufsc dot br 2007-03-28 22:39
---
Created an attachment (id=13296)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13296&action=view)
.c, .i and .s files
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31386