https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84508

Hongtao.liu <crazylht at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crazylht at gmail dot com

--- Comment #15 from Hongtao.liu <crazylht at gmail dot com> ---

Clang's implementation:

1681static __inline__ __m128 __DEFAULT_FN_ATTRS
1682_mm_load_ss(const float *__p)
1683{
1684  struct __mm_load_ss_struct {
1685    float __u;
1686  } __attribute__((__packed__, __may_alias__));
1687  float __u = ((const struct __mm_load_ss_struct*)__p)->__u;
1688  return __extension__ (__m128){ __u, 0, 0, 0 };
1689}

Guess we can do similar things, will handle it in GCC13.

Reply via email to