This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/56788] _mm_frcz_sd and _mm_frcz_ss ignore their second argument
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Nov 2013 09:22:08 +0000
- Subject: [Bug target/56788] _mm_frcz_sd and _mm_frcz_ss ignore their second argument
- Auto-submitted: auto-generated
- References: <bug-56788-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56788
--- Comment #5 from UroÅ Bizjak <ubizjak at gmail dot com> ---
(In reply to Marc Glisse from comment #1)
> _mm_frcz_ss is inconsistent between compilers. Microsoft gives it 2
> arguments and movss-like semantics, whereas clang gives it a single
> argument. AMD doesn't document intrinsics, and I can't find any relevant
> Intel doc.
clang is wrong, please see "Return value" section in [1]:
A 128-bit result r that contains four 32-bit floating-point values.
r[0] := fractional_part_of(src[0]);
r[i] := high[i]; // i = 1,2,3
[1] http://msdn.microsoft.com/en-us/library/vstudio/gg445126%28v=vs.100%29.aspx