Inline assembly with optimization gives error.
Dhruv Matani
dhruvbird@gmx.net
Mon Oct 11 16:50:00 GMT 2004
Hello,
I have the following which compiles and runs fine with gcc3.2 with and
without optimization, but with gcc3.4 ans gcc3.5 compiles only when
compiled without optimizations. With -O3 and -O2 it fails to compile
saying:
mmx_test.cpp:13: error: inconsistent operand constraints in an `asm'
mmx_test.cpp:13: error: inconsistent operand constraints in an `asm'
However, with -O1 it compiles fine!
Is there anything wrong with the code itself?
Also, can I use 3dNow instructions using gcc's inline asm syntax?
ps. Please cc me the reply too, since I'm not subscribed!
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
The price of freedom is responsibility, but it's a bargain, because
freedom is priceless. ~ Hugh Downs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmx_test.cpp
Type: text/x-c++
Size: 542 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20041011/c4d21b2e/attachment.bin>
More information about the Gcc
mailing list