[llvm-bugs] [Bug 35869] New: _mm_setzero_si64 violates the spec by generating xorps instead of pxor
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 9 02:22:35 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=35869
Bug ID: 35869
Summary: _mm_setzero_si64 violates the spec by generating xorps
instead of pxor
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: gonzalobg88 at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
In the `<mmintrin.h>` header, the intrinsic `__mm_setzero_si64` [0] implemented
as follows:
static __inline__ __m64 __DEFAULT_FN_ATTRS
_mm_setzero_si64(void)
{
return (__m64){ 0LL };
}
generates `xorps` [1] violating the spec [2] which says that it should generate
the instruction sequence `pxor mm, mm`.
[0]:
https://github.com/llvm-mirror/clang/blob/master/lib/Headers/mmintrin.h#L1296
[1]: https://godbolt.org/g/FnQYkf
[2]:
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_setzero_si64&expand=4727,4727
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180109/e308d5a5/attachment.html>
More information about the llvm-bugs
mailing list