This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26134] fold *(float*)(&complex_float_var) into REALPART_EXPR<complex_float_var>
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2006 18:47:55 -0000
- Subject: [Bug middle-end/26134] fold *(float*)(&complex_float_var) into REALPART_EXPR<complex_float_var>
- References: <bug-26134-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pluto at agmk dot net 2006-02-07 18:47 -------
I see here another missed optimization on x86-64.
float re(float _Complex a) { return __real__ a; }
# gcc-4.1:
re: movq %xmm0, -8(%rsp)
movss -8(%rsp), %xmm0
ret
we can use `movss %xmm0, %xmm0` here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26134