1 /* { dg-do assemble } */
2 /* { dg-options "-O2 -save-temps" } */
3
4 typedef int __v2si __attribute__((__vector_size__(8)));
5
6 __v2si __attribute__((unused))
7 vector_cvt (__v2si arg)
8 {
9 unsigned short *p = (unsigned short*)&arg;
10
11 volatile unsigned short s = p[0];
12
13 return arg;
14 }
15
16 __v2si __attribute__((unused))
17 vector_cvt_2 (__v2si arg)
18 {
19 unsigned char *p = (unsigned char*)&arg;
20
21 volatile unsigned char s = p[0];
22
23 return arg;
24 }
25
26 /* Todo: We'd like to generate insns with .x operands to access the v2si
27 operands, but that's currently not done, see PR96403. */