annotate gcc/testsuite/gcc.dg/tree-ssa/pr42585.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 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 struct _fat_ptr
kono
parents:
diff changeset
5 {
kono
parents:
diff changeset
6 unsigned char *curr;
kono
parents:
diff changeset
7 unsigned char *base;
kono
parents:
diff changeset
8 unsigned char *last_plus_one;
kono
parents:
diff changeset
9 };
kono
parents:
diff changeset
10 int Cyc_string_ungetc (int ignore, struct _fat_ptr *sptr);
kono
parents:
diff changeset
11 int
kono
parents:
diff changeset
12 Cyc_string_ungetc (int ignore, struct _fat_ptr *sptr)
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 struct _fat_ptr *_T0;
kono
parents:
diff changeset
15 struct _fat_ptr *_T1;
kono
parents:
diff changeset
16 struct _fat_ptr _T2;
kono
parents:
diff changeset
17 int _T3;
kono
parents:
diff changeset
18 struct _fat_ptr _ans;
kono
parents:
diff changeset
19 int _change;
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 _T0 = sptr;
kono
parents:
diff changeset
23 _T1 = sptr;
kono
parents:
diff changeset
24 _T2 = *sptr;
kono
parents:
diff changeset
25 _T3 = -1;
kono
parents:
diff changeset
26 _ans = _T2;
kono
parents:
diff changeset
27 _change = -1;
kono
parents:
diff changeset
28 _ans.curr += 4294967295U;
kono
parents:
diff changeset
29 *sptr = _ans;
kono
parents:
diff changeset
30 return (0);
kono
parents:
diff changeset
31 }
kono
parents:
diff changeset
32 }
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 /* The local aggregates . */
kono
parents:
diff changeset
35 /* Whether the structs are totally scalarized or not depends on the
kono
parents:
diff changeset
36 MOVE_RATIO macro definition in the back end. The scalarization will
kono
parents:
diff changeset
37 not take place when using small values for MOVE_RATIO. */
kono
parents:
diff changeset
38 /* { dg-final { scan-tree-dump-times "struct _fat_ptr _ans" 0 "optimized" { target { ! "aarch64*-*-* alpha*-*-* arm*-*-* avr-*-* nds32*-*-* powerpc*-*-* s390*-*-* sh*-*-*" } } } } */
kono
parents:
diff changeset
39 /* { dg-final { scan-tree-dump-times "struct _fat_ptr _T2" 0 "optimized" { target { ! "aarch64*-*-* alpha*-*-* arm*-*-* avr-*-* nds32*-*-* powerpc*-*-* s390*-*-* sh*-*-*" } } } } */