From: Martin Kronbichler Date: Thu, 5 Sep 2019 20:44:30 +0000 (+0200) Subject: Fix compilation with gcc-9/AVX-512 X-Git-Tag: v9.2.0-rc1~1132^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=808244c15a1a735a71e9e352c88b813ddbec4922;p=dealii.git Fix compilation with gcc-9/AVX-512 --- diff --git a/include/deal.II/base/vectorization.h b/include/deal.II/base/vectorization.h index 8bcc454c07..96395f8324 100644 --- a/include/deal.II/base/vectorization.h +++ b/include/deal.II/base/vectorization.h @@ -4121,7 +4121,7 @@ compare_and_apply_mask(const VectorizedArray &left, const VectorizedArray &false_values) { const __mmask16 mask = - _mm512_cmp_ps(left.data, right.data, static_cast(predicate)); + _mm512_cmp_ps_mask(left.data, right.data, static_cast(predicate)); VectorizedArray result; result.data = _mm512_mask_mov_ps(false_values.data, mask, true_values.data); return result; @@ -4137,7 +4137,7 @@ compare_and_apply_mask(const VectorizedArray &left, const VectorizedArray &false_values) { const __mmask16 mask = - _mm512_cmp_pd(left.data, right.data, static_cast(predicate)); + _mm512_cmp_pd_mask(left.data, right.data, static_cast(predicate)); VectorizedArray result; result.data = _mm512_mask_mov_pd(false_values.data, mask, true_values.data); return result; @@ -4175,8 +4175,8 @@ compare_and_apply_mask(const VectorizedArray &left, _mm256_cmp_pd(left.data, right.data, static_cast(predicate)); VectorizedArray result; - result.data = _mm256_or_ps(_mm256_and_ps(mask, true_values.data), - _mm256_andnot_ps(mask, false_values.data)); + result.data = _mm256_or_pd(_mm256_and_pd(mask, true_values.data), + _mm256_andnot_pd(mask, false_values.data)); return result; } @@ -4253,8 +4253,8 @@ compare_and_apply_mask(const VectorizedArray &left, } VectorizedArray result; - result.data = _mm_or_ps(_mm_and_ps(mask, true_values.data), - _mm_andnot_ps(mask, false_values.data)); + result.data = _mm_or_pd(_mm_and_pd(mask, true_values.data), + _mm_andnot_pd(mask, false_values.data)); return result; }