Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/pr86363.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* { dg-do run } */ |
2 /* { dg-additional-options "-w -Wno-psabi" } */ | |
3 | |
4 typedef char U __attribute__ ((vector_size (16))); | |
5 typedef unsigned V __attribute__ ((vector_size (16))); | |
6 | |
7 V g; | |
8 | |
9 V | |
10 f (V v, U u) | |
11 { | |
12 __builtin_memset (&u[v[0]], 0, 1); | |
13 g ^= u[0]; | |
14 return g; | |
15 } | |
16 | |
17 int | |
18 main (void) | |
19 { | |
20 V x = f ((V) { 5 }, (U) { 1 }); | |
21 | |
22 if (x[0] != 1 || x[1] != 1 || x[2] != 1 || x[3] != 1) | |
23 __builtin_abort (); | |
24 return 0; | |
25 } |