[Bug target/56788] New: _mm_frcz_sd and _mm_frcz_ss ignore their second argument

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 30 20:20:00 GMT 2013


             Bug #: 56788
           Summary: _mm_frcz_sd and _mm_frcz_ss ignore their second
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: glisse@gcc.gnu.org
            Target: x86_64-linux-gnu

#include <x86intrin.h>
__m128d f(__m128d x, __m128d y){
  return _mm_frcz_sd(x,y);

is compiled to:

    vfrczsd    %xmm0, %xmm0

Notice the lack of any reference to xmm1...

In my opinion, __builtin_ia32_vfrczsd should take a single argument, and the
intrinsic should call first this builtin and then __builtin_ia32_movsd.

More information about the Gcc-bugs mailing list