annotate gcc/testsuite/gcc.dg/prefetch-loop-arrays-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR tree-optimization/28887 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
kono
parents:
diff changeset
4 /* { dg-options "-O2 -fprefetch-loop-arrays -march=i686 -msse -w" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 __extension__ typedef __SIZE_TYPE__ size_t;
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 struct re_pattern_buffer
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 size_t re_nsub;
kono
parents:
diff changeset
11 };
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 typedef enum
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 start_memory,
kono
parents:
diff changeset
16 } re_opcode_t;
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 typedef union
kono
parents:
diff changeset
19 {
kono
parents:
diff changeset
20 struct
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 unsigned matched_something:1;
kono
parents:
diff changeset
23 } bits;
kono
parents:
diff changeset
24 } byte_register_info_type;
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 void byte_re_match_2_internal (struct re_pattern_buffer *bufp)
kono
parents:
diff changeset
27 {
kono
parents:
diff changeset
28 int mcnt;
kono
parents:
diff changeset
29 size_t num_regs = bufp->re_nsub + 1;
kono
parents:
diff changeset
30 byte_register_info_type *reg_info;
kono
parents:
diff changeset
31 for (mcnt = 1; (unsigned) mcnt < num_regs; mcnt++)
kono
parents:
diff changeset
32 {
kono
parents:
diff changeset
33 ((reg_info[mcnt]).bits.matched_something) = 0;
kono
parents:
diff changeset
34 }
kono
parents:
diff changeset
35 }
kono
parents:
diff changeset
36