S/390: Don't use vgm for v1ti and v1tf.
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / vector / vec-genmask-2.c
blob46256e92531ea7c750e44baf74688e7b6d6bde14
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -mzarch -march=z13" } */
3 /* { dg-require-effective-target int128 } */
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)));
9 typedef unsigned __int128 uv1ti __attribute__((vector_size(16)));
11 /* The elements differ. */
12 uv2di __attribute__((noinline))
13 foo1 ()
15 return (uv2di){ 0x000fffffffffff00, 0x0000ffffffffff00 };
18 /* Non-contiguous bitmasks */
20 uv4si __attribute__((noinline))
21 foo2 ()
23 return (uv4si){ 0xff00100f, 0xff00100f, 0xff00100f, 0xff00100f };
26 uv8hi __attribute__((noinline))
27 foo3a ()
29 return (uv8hi){ 0xf700, 0xf700, 0xf700, 0xf700,
30 0xf700, 0xf700, 0xf700, 0xf700 };
33 uv8hi __attribute__((noinline))
34 foo3b ()
36 return (uv8hi){ 0x10ff, 0x10ff, 0x10ff, 0x10ff,
37 0x10ff, 0x10ff, 0x10ff, 0x10ff };
40 uv16qi __attribute__((noinline))
41 foo4 ()
43 return (uv16qi){ 0x82, 0x82, 0x82, 0x82,
44 0x82, 0x82, 0x82, 0x82,
45 0x82, 0x82, 0x82, 0x82,
46 0x82, 0x82, 0x82, 0x82 };
49 /* We do not have vgmq. */
50 uv1ti
51 foo5()
53 return (uv1ti){ ((unsigned __int128)1 << 53) - 1 };
55 /* { dg-final { scan-assembler-not "vgm" } } */