diff --git a/deps/zlib/adler32_simd.c b/deps/zlib/adler32_simd.c index f8b07297b93840..1cd571bda52f2a 100644 --- a/deps/zlib/adler32_simd.c +++ b/deps/zlib/adler32_simd.c @@ -54,6 +54,9 @@ #define __attribute__() #endif +// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, +// remove the next line and add `-mssse3` to the command line options. +#pragma GCC target ("ssse3") #include __attribute__((target("ssse3"))) diff --git a/deps/zlib/contrib/optimizations/chunkcopy.h b/deps/zlib/contrib/optimizations/chunkcopy.h index 8bcdadad05a817..944942c8f1a17a 100644 --- a/deps/zlib/contrib/optimizations/chunkcopy.h +++ b/deps/zlib/contrib/optimizations/chunkcopy.h @@ -29,6 +29,8 @@ #include typedef uint8x16_t z_vec128i_t; #elif defined(INFLATE_CHUNK_SIMD_SSE2) +// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, +// remove the next line and add `-msse2` to the command line options. #pragma GCC target ("sse2") #include typedef __m128i z_vec128i_t; diff --git a/deps/zlib/contrib/optimizations/insert_string.h b/deps/zlib/contrib/optimizations/insert_string.h index 69eee3dc9e91fc..e4d23434b21882 100644 --- a/deps/zlib/contrib/optimizations/insert_string.h +++ b/deps/zlib/contrib/optimizations/insert_string.h @@ -16,6 +16,9 @@ // clang-format off #if defined(CRC32_SIMD_SSE42_PCLMUL) /* Required to make MSVC bot build pass. */ + // TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, + // remove the next line and add `-msse4.2` to the command line options. + #pragma GCC target ("sse4.2") #include #if defined(__GNUC__) || defined(__clang__) #undef TARGET_CPU_WITH_CRC diff --git a/deps/zlib/crc32_simd.c b/deps/zlib/crc32_simd.c index 27481847e97b90..d7ebe5d65ed705 100644 --- a/deps/zlib/crc32_simd.c +++ b/deps/zlib/crc32_simd.c @@ -20,6 +20,11 @@ * V. Gopal, E. Ozturk, et al., 2009, http://intel.ly/2ySEwL0 */ +// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, +// remove the next line and add `-msse4.2` and `-mpclmul` to the +// command line options. +#pragma GCC target ("sse4.2", "pclmul") + #include #include #include diff --git a/deps/zlib/crc_folding.c b/deps/zlib/crc_folding.c index 54f4b5c9401089..4e19626da5e9ad 100644 --- a/deps/zlib/crc_folding.c +++ b/deps/zlib/crc_folding.c @@ -18,6 +18,11 @@ #include "deflate.h" +// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, +// remove the next line and add `-msse4.2` and `-mpclmul` to the +// command line options. +#pragma GCC target ("sse4.2", "pclmul") + #include #include #include diff --git a/deps/zlib/fill_window_sse.c b/deps/zlib/fill_window_sse.c index e19154bc14d238..8e5def24a36968 100644 --- a/deps/zlib/fill_window_sse.c +++ b/deps/zlib/fill_window_sse.c @@ -9,6 +9,8 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ +// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, +// remove the next line and add `-msse2` to the command line options. #pragma GCC target ("sse2") #include #include "deflate.h"