1  /* { dg-do compile } */
       2  /* { dg-options "-mavx2 -O2" } */
       3  /* { dg-final { scan-assembler-times "vbroadcasti128\[ \\t\]+\[^\n\]*%ymm\[0-9\]+" 2 } } */
       4  
       5  #include <immintrin.h>
       6  
       7  volatile __m256i x,xx;
       8  __m128i y,yy;
       9  
      10  void extern
      11  avx2_test (void)
      12  {
      13    x = _mm256_broadcastsi128_si256 (y);
      14    xx = _mm_broadcastsi128_si256 (yy);
      15  }