This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/26134] fold *(float*)(&complex_float_var) into REALPART_EXPR<complex_float_var>



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]