Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr87537-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx2 -O2" } */
3 /* { dg-final { scan-assembler-times "vbroadcastss\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]" 1 } } */
4 /* { dg-final { scan-assembler-not "vmovss" } } */
5
6 #include <immintrin.h>
7
8 __m128
9 foo (float *x)
10 {
11 return _mm_broadcastss_ps(_mm_load_ss(x));
12 }