Skip to content

Commit

Permalink
wasm f{32x4,64x2}_min: add workaround for a gcc<6 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Oct 27, 2023
1 parent f819c52 commit d5d6d10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions simde/wasm/simd128.h
Original file line number Diff line number Diff line change
Expand Up @@ -5224,7 +5224,7 @@ simde_wasm_f32x4_min (simde_v128_t a, simde_v128_t b) {
b_ = simde_v128_to_private(b),
r_;

#if defined(SIMDE_X86_SSE_NATIVE)
#if defined(SIMDE_X86_SSE_NATIVE) && (!defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(6,0,0))
// Inspired by https://github.com/v8/v8/blob/c750b6c85bd1ad1d27f7acc1812165f465515144/src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.cc#L202
simde_v128_private scratch;
scratch.sse_m128 = a_.sse_m128;
Expand Down Expand Up @@ -5261,7 +5261,7 @@ simde_wasm_f64x2_min (simde_v128_t a, simde_v128_t b) {
b_ = simde_v128_to_private(b),
r_;

#if defined(SIMDE_X86_SSE_NATIVE)
#if defined(SIMDE_X86_SSE_NATIVE) && (!defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(6,0,0))
// Inspired by https://github.com/v8/v8/blob/c750b6c85bd1ad1d27f7acc1812165f465515144/src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.cc#L263
simde_v128_private scratch;
scratch.sse_m128d = a_.sse_m128d;
Expand Down Expand Up @@ -5521,7 +5521,7 @@ simde_wasm_f32x4_max (simde_v128_t a, simde_v128_t b) {
b_ = simde_v128_to_private(b),
r_;

#if defined(SIMDE_X86_SSE_NATIVE)
#if defined(SIMDE_X86_SSE_NATIVE) && (!defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(6,0,0))
// Inspired by https://github.com/v8/v8/blob/c750b6c85bd1ad1d27f7acc1812165f465515144/src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.cc#L231
simde_v128_private scratch;
scratch.sse_m128 = a_.sse_m128;
Expand Down Expand Up @@ -5559,7 +5559,7 @@ simde_wasm_f64x2_max (simde_v128_t a, simde_v128_t b) {
b_ = simde_v128_to_private(b),
r_;

#if defined(SIMDE_X86_SSE_NATIVE)
#if defined(SIMDE_X86_SSE_NATIVE) && (!defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(6,0,0))
// Inspired by https://github.com/v8/v8/blob/c750b6c85bd1ad1d27f7acc1812165f465515144/src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.cc#L301
simde_v128_private scratch;
scratch.sse_m128d = a_.sse_m128d;
Expand Down

0 comments on commit d5d6d10

Please sign in to comment.