annotate gcc/testsuite/g++.dg/ext/vector30.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR c++/70430
kono
parents:
diff changeset
2 // { dg-do run }
kono
parents:
diff changeset
3 extern "C" void abort (void);
kono
parents:
diff changeset
4 typedef int v4si __attribute__ ((vector_size (16)));
kono
parents:
diff changeset
5 int main()
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 v4si b = {1,0,-1,2}, c;
kono
parents:
diff changeset
8 c = b && 1;
kono
parents:
diff changeset
9 if (c[0] != -1 || c[1] != 0 || c[2] != -1 || c[3] != -1)
kono
parents:
diff changeset
10 abort ();
kono
parents:
diff changeset
11 c = b && 0;
kono
parents:
diff changeset
12 if (c[0] != 0 || c[1] != 0 || c[2] != 0 || c[3] != 0)
kono
parents:
diff changeset
13 abort ();
kono
parents:
diff changeset
14 return 0;
kono
parents:
diff changeset
15 }