annotate gcc/testsuite/gcc.dg/pr34856.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2" } */
kono
parents:
diff changeset
3 /* { dg-options "-O2 -msse2" { target { i?86-*-* x86_64-*-* } } } */
kono
parents:
diff changeset
4 /* { dg-options "-O2 -maltivec" { target { powerpc*-*-linux* && powerpc_altivec_ok } } } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 typedef __UINTPTR_TYPE__ uintptr_t;
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 #undef __vector
kono
parents:
diff changeset
9 #define __vector __attribute__ ((__vector_size__ (16)))
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 typedef __vector signed char qword;
kono
parents:
diff changeset
12 typedef __vector uintptr_t VU;
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 extern short g[192 + 16];
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 void f (qword);
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 void f1 (unsigned ctr)
kono
parents:
diff changeset
19 {
kono
parents:
diff changeset
20 VU pin;
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 pin = (VU){(uintptr_t) &g[16]};
kono
parents:
diff changeset
23 do
kono
parents:
diff changeset
24 {
kono
parents:
diff changeset
25 f ((qword) pin);
kono
parents:
diff changeset
26 ctr--;
kono
parents:
diff changeset
27 }
kono
parents:
diff changeset
28 while (ctr);
kono
parents:
diff changeset
29 }
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 /* Ignore a warning that is irrelevant to the purpose of this test. */
kono
parents:
diff changeset
32 /* { dg-prune-output ".*GCC vector passed by reference.*" } */