* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / htm-builtins-z13-1.c
blobaaca1f47518f5d050c979c9ed57240d409791160
1 /* Verify if VRs are saved and restored. */
3 /* { dg-do run } */
4 /* { dg-require-effective-target s390_vx } */
5 /* { dg-options "-O3 -march=z13 -mzarch" } */
7 typedef int __attribute__((vector_size(16))) v4si;
9 v4si __attribute__((noinline))
10 foo (v4si a)
12 a += (v4si){ 1, 1, 1, 1 };
13 if (__builtin_tbegin (0) == 0)
15 a += (v4si){ 1, 1, 1, 1 };
16 __builtin_tabort (256);
17 __builtin_tend ();
19 else
20 a -= (v4si){ 1, 1, 1, 1 };
22 return a;
25 int
26 main ()
28 v4si a = (v4si){ 0, 0, 0, 0 };
30 a = foo (a);
32 if (a[0] != 0)
33 __builtin_abort ();