2 /* { dg-options "-O3 -mzarch -march=z13 --save-temps" } */
3 /* { dg-require-effective-target vector } */
5 typedef unsigned char uv16qi
__attribute__((vector_size(16)));
6 typedef unsigned short uv8hi
__attribute__((vector_size(16)));
7 typedef unsigned int uv4si
__attribute__((vector_size(16)));
8 typedef unsigned long long uv2di
__attribute__((vector_size(16)));
10 uv2di
__attribute__((noinline
))
13 return (uv2di
){ 0x7f0f, 0x7f0f };
15 /* { dg-final { scan-assembler-times "vrepig\t%v24,32527" 1 } } */
17 uv4si
__attribute__((noinline
))
20 return (uv4si
){ 0x7f0f, 0x7f0f, 0x7f0f, 0x7f0f };
22 /* { dg-final { scan-assembler-times "vrepif\t%v24,32527" 1 } } */
24 uv8hi
__attribute__((noinline
))
27 return (uv8hi
){ 0x7f0f, 0x7f0f, 0x7f0f, 0x7f0f,
28 0x7f0f, 0x7f0f, 0x7f0f, 0x7f0f };
30 /* { dg-final { scan-assembler-times "vrepih\t%v24,32527" 1 } } */
32 uv16qi
__attribute__((noinline
))
35 return (uv16qi
){ 0x77, 0x77, 0x77, 0x77,
36 0x77, 0x77, 0x77, 0x77,
37 0x77, 0x77, 0x77, 0x77,
38 0x77, 0x77, 0x77, 0x77 };
40 /* { dg-final { scan-assembler-times "vrepib\t%v24,119" 1 } } */
45 if (foo1()[1] != 0x7f0f)
48 if (foo2()[1] != 0x7f0f)
51 if (foo3()[1] != 0x7f0f)
54 if (foo4()[1] != 0x77)