blob: d1b679f1c6352a377216128b6066d6f2b543ae4b (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/* PR target/65078 */
/* { dg-do compile } */
/* { dg-options "-O2 -mavx512f" } */
/* { dg-additional-options "-mregparm=2" { target ia32 } } */
/* { dg-final { scan-assembler-not "\\(%\[er\]sp\\)" } } */
typedef unsigned char V __attribute__((vector_size (64)));
typedef unsigned long long W __attribute__((vector_size (64)));
typedef unsigned int T __attribute__((vector_size (64)));
void
f1 (unsigned long long *x, V y)
{
*x = ((W)y)[0];
}
#if defined(__x86_64__) || defined(ALL)
unsigned long long
f2 (V y)
{
return ((W)y)[0];
}
#endif
void
f3 (unsigned int *x, V y)
{
*x = ((T)y)[0];
}
unsigned int
f4 (V y)
{
return ((T)y)[0];
}
void
f5 (unsigned long long *x, W y)
{
*x = ((W)y)[0];
}
#if defined(__x86_64__) || defined(ALL)
unsigned long long
f6 (W y)
{
return ((W)y)[0];
}
#endif
void
f7 (unsigned int *x, T y)
{
*x = ((T)y)[0];
}
unsigned int
f8 (T y)
{
return ((T)y)[0];
}
|