1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vaddss\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vaddss\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vaddss\[ \\t\]+\[^\n\]*\{rn-sae\}\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vaddss\[ \\t\]+\[^\n\]*\{rd-sae\}\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
7 /* { dg-final { scan-assembler-times "vaddss\[ \\t\]+\[^\n\]*\{rz-sae\}\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
11 volatile __m128 x1
, x2
, x3
;
17 x1
= _mm_mask_add_ss (x1
, m
, x2
, x3
);
18 x1
= _mm_maskz_add_ss (m
, x1
, x2
);
19 x1
= _mm_add_round_ss (x1
, x2
, _MM_FROUND_TO_NEAREST_INT
| _MM_FROUND_NO_EXC
);
20 x1
= _mm_mask_add_round_ss (x1
, m
, x2
, x3
, _MM_FROUND_TO_NEG_INF
| _MM_FROUND_NO_EXC
);
21 x1
= _mm_maskz_add_round_ss (m
, x1
, x2
, _MM_FROUND_TO_ZERO
| _MM_FROUND_NO_EXC
);