This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/56788] New: _mm_frcz_sd and _mm_frcz_ss ignore their second argument
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 30 Mar 2013 20:20:39 +0000
- Subject: [Bug target/56788] New: _mm_frcz_sd and _mm_frcz_ss ignore their second argument
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56788
Bug #: 56788
Summary: _mm_frcz_sd and _mm_frcz_ss ignore their second
argument
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
ret
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.