1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-vrp1-details" } */
4 typedef unsigned short u16
;
5 typedef unsigned char u8
;
6 typedef unsigned int u32
;
7 __extension__
typedef __INT32_TYPE__ i32
;
15 Calc_crc8 (u8 data
, u16 crc
)
18 for (i
= 0; i
< 8; i
++)
20 x16
= (u8
)((data
& 1) ^ ((u8
)crc
& 1));
40 main (int argc
, char argv
[])
42 int i
; i32 j
; u16 crc
;
43 for (j
= 0; j
< 10000000; j
++)
45 for (i
= 0; i
< NNN
; i
++)
48 t
[i
] = random(NNN
- i
- 1);
52 crc
=Calc_crc8(f
[i
],(u16
)argc
);
53 crc
=Calc_crc8(t
[i
],crc
);
59 /* { dg-final { scan-tree-dump-times "Registering jump thread" 3 "vrp1" } } */
60 /* { dg-final { scan-tree-dump-not "joiner" "vrp1" } } */
61 /* { dg-final { scan-tree-dump-times "Threaded jump" 3 "vrp1" } } */