blob: b825f0c02eed61b0aab0ca7f612e3209fc16c726 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* { dg-do run } */
/* { dg-options "-O2 -ftree-vectorize -ffast-math -mavx512bw -save-temps" } */
#include "avx512bw-check.h"
#define N 120
signed int yy[10000];
void
__attribute__ ((noinline)) foo (signed char s)
{
signed char i;
for (i = 0; i < s; i++)
yy[i] = (signed int) i;
}
void
avx512bw_test ()
{
signed char i;
foo (N);
for (i = 0; i < N; i++)
if ( (signed int)i != yy [i] )
abort ();
}
/* { dg-final { scan-assembler-times "vpmovsxbw\[ \\t\]+\[^\n\]*%zmm" 2 } } */
|