This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17127] -fexpensive-optimizations causes output of wrong code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2004 21:37:47 -0000
- Subject: [Bug c++/17127] -fexpensive-optimizations causes output of wrong code
- References: <20040820213232.17127.silverbanana@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-20 21:37 -------
No what you telling the compiler that the inline-asm only does one byte memory store but really you
are doing more (8 bytes) which is what the problem so this is invalid.
Try the following (which works for me):
asm volatile(
"movq %[input],%%mm0 \n"
"movq %%mm0,%[output] \n"
"emms \n"
:[output]"=m"(*(long long *)output):[input]"m"(*(long long *)input):"mm0", "cc"
);
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17127