summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512dq-vrangess-1.c
blob: 0f5e750b67679d3139f2f6fbd819e79e523d463b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-mavx512dq -O2" } */
/* { dg-final { scan-assembler-times "vrangess\[ \\t\]+\[^\n\]*\{sae\}\[^\n\]*%xmm\[0-9\]\[^\{\]" 1 } } */
/* { dg-final { scan-assembler-times "vrangess\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\{\]" 2 } } */

#include <immintrin.h>

volatile __m128 x1, x2;
volatile __mmask8 m;

void extern
avx512dq_test (void)
{
  x1 = _mm_range_ss (x1, x2, 1);
  x1 = _mm_range_round_ss (x1, x2, 1, _MM_FROUND_NO_EXC);
}