| 1 |
/* PR target/98537 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-O2 -march=x86-64 -std=c++11" } */ |
| 4 |
|
| 5 |
#ifndef TYPEV |
| 6 |
#define TYPEV int |
| 7 |
#endif |
| 8 |
|
| 9 |
#ifndef TYPEW |
| 10 |
#define TYPEW long long |
| 11 |
#endif |
| 12 |
|
| 13 |
#ifndef T_ARR |
| 14 |
#define T_ARR \ |
| 15 |
__attribute__ ((target ("avx512vl"))) |
| 16 |
#endif |
| 17 |
|
| 18 |
typedef TYPEV V __attribute__((__vector_size__(32))); |
| 19 |
typedef TYPEW W __attribute__((__vector_size__(32))); |
| 20 |
|
| 21 |
W c, d; |
| 22 |
struct B {}; |
| 23 |
B e; |
| 24 |
struct C { W i; }; |
| 25 |
void foo (C); |
| 26 |
|
| 27 |
C |
| 28 |
operator== (B, B) |
| 29 |
{ |
| 30 |
W r = (V)c == (V)d; |
| 31 |
return {r}; |
| 32 |
} |
| 33 |
|
| 34 |
void |
| 35 |
T_ARR |
| 36 |
bar () |
| 37 |
{ |
| 38 |
B a; |
| 39 |
foo (a == e); |
| 40 |
} |