1179
|
1 |
# HG changeset patch
|
|
2 |
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
1181
|
3 |
# Parent e583ac9b86ba82dd1c60d307115b4cb96296a6af
|
1179
|
4 |
# References: bmo#1792159 - Add missing includes to AtomicOperationsGenerated.h
|
|
5 |
|
|
6 |
diff --git a/mozglue/misc/SIMD_avx2.cpp b/mozglue/misc/SIMD_avx2.cpp
|
|
7 |
--- a/mozglue/misc/SIMD_avx2.cpp
|
|
8 |
+++ b/mozglue/misc/SIMD_avx2.cpp
|
1181
|
9 |
@@ -53,17 +53,17 @@ template <typename TValue>
|
1179
|
10 |
}
|
|
11 |
if (sizeof(TValue) == 2) {
|
|
12 |
return _mm256_cmpeq_epi16(a, b);
|
|
13 |
}
|
|
14 |
|
|
15 |
return _mm256_cmpeq_epi64(a, b);
|
|
16 |
}
|
|
17 |
|
|
18 |
-# if defined(__GNUC__) && !defined(__clang__)
|
|
19 |
+# if 0
|
|
20 |
|
|
21 |
// See the comment in SIMD.cpp over Load32BitsIntoXMM. This is just adapted
|
|
22 |
// from that workaround. Testing this, it also yields the correct instructions
|
|
23 |
// across all tested compilers.
|
|
24 |
__m128i Load64BitsIntoXMM(uintptr_t ptr) {
|
|
25 |
int64_t tmp;
|
|
26 |
memcpy(&tmp, reinterpret_cast<const void*>(ptr), sizeof(tmp));
|
|
27 |
return _mm_cvtsi64_si128(tmp);
|