Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/crypto/aes/arch/x86 Fix target attribute on _mm_movehl_p...



details:   https://anonhg.NetBSD.org/src/rev/b9309887f90f
branches:  trunk
changeset: 936329:b9309887f90f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jul 25 22:44:32 2020 +0000

description:
Fix target attribute on _mm_movehl_ps, fix clang _mm_unpacklo_epi64.

- _mm_movehl_ps is available in SSE2, no need for SSSE3.
- _mm_unpacklo_epi64 operates on v2di, not v4si; fix.

diffstat:

 sys/crypto/aes/arch/x86/immintrin.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 569250e332f5 -r b9309887f90f sys/crypto/aes/arch/x86/immintrin.h
--- a/sys/crypto/aes/arch/x86/immintrin.h       Sat Jul 25 22:44:02 2020 +0000
+++ b/sys/crypto/aes/arch/x86/immintrin.h       Sat Jul 25 22:44:32 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: immintrin.h,v 1.3 2020/07/25 22:31:04 riastradh Exp $  */
+/*     $NetBSD: immintrin.h,v 1.4 2020/07/25 22:44:32 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -125,7 +125,7 @@
        return *__p;
 }
 
-_INTRINSATTR _SSSE3_ATTR
+_INTRINSATTR
 static __inline __m128
 _mm_movehl_ps(__m128 __v0, __m128 __v1)
 {
@@ -279,8 +279,8 @@
        return (__m128i)__builtin_ia32_punpcklqdq128((__v2di)__lo,
            (__v2di)__hi);
 #elif defined(__clang__)
-       return (__m128i)__builtin_shufflevector((__v4si)__lo, (__v4si)__hi,
-           0, 4, 1, 5);
+       return (__m128i)__builtin_shufflevector((__v2di)__lo, (__v2di)__hi,
+           0,2);
 #endif
 }
 



Home | Main Index | Thread Index | Old Index