summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512vl-vbroadcastsd-1.c
blob: 08cd026e8d4c0d45cf9c4d1e0076119b97e18a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-mavx512vl -O2" } */
/* { dg-final { scan-assembler-times "vbroadcastsd\[ \\t\]+\[^\n\]*%ymm\[0-9\]\[^\{\]" 1 } } */
/* { dg-final { scan-assembler-times "vbroadcastsd\[ \\t\]+\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
/* { dg-final { scan-assembler-times "vbroadcastsd\[ \\t\]+\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */

#include <immintrin.h>

volatile __m256d x;
volatile __m128d y;
volatile __mmask8 m;

void extern
avx512vl_test (void)
{
  x = _mm256_broadcastsd_pd (y);
  x = _mm256_mask_broadcastsd_pd (x, m, y);
  x = _mm256_maskz_broadcastsd_pd (m, y);
}