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 target/56788] _mm_frcz_sd and _mm_frcz_ss ignore their second argument


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

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