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: unassignedclangb...@nondot.org
          Reporter: gonzalob...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to