| 1 |
/* PR target/112394 */ |
| 2 |
/* { dg-do compile { target { ! ia32 } } } */ |
| 3 |
/* { dg-options "-msse4.1 -mno-sse4.2 -m64 -O -mapxf" } */ |
| 4 |
|
| 5 |
typedef int __attribute__((__vector_size__ (8))) A; |
| 6 |
typedef int __attribute__((__vector_size__ (16))) B; |
| 7 |
typedef char __attribute__((__vector_size__ (4))) C; |
| 8 |
typedef char __attribute__((__vector_size__ (32))) D; |
| 9 |
typedef _Complex __int128 CU; |
| 10 |
typedef _Float16 __attribute__((__vector_size__ (8))) F; |
| 11 |
D d; |
| 12 |
B b; |
| 13 |
CU gcu; |
| 14 |
|
| 15 |
int |
| 16 |
foo (char c, int, int, int, int, CU cu, int x) |
| 17 |
{ |
| 18 |
d /= c | d; |
| 19 |
F f = __builtin_convertvector (b, F); |
| 20 |
cu /= gcu; |
| 21 |
A a = (A) f; |
| 22 |
int i = cu + x; |
| 23 |
return ((C) a[0])[1] + i + c; |
| 24 |
} |