Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr87485.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* PR rtl-optimization/87485 */ | |
2 /* { dg-do compile { target int128 } } */ | |
3 /* { dg-options "-O2 -fschedule-insns -fno-guess-branch-probability -fno-isolate-erroneous-paths-dereference -fno-omit-frame-pointer -fno-split-wide-types -fno-tree-ccp -fno-tree-sra" } */ | |
4 /* { dg-additional-options "-fstack-protector-strong" { target fstack_protector } } */ | |
5 | |
6 int *a; | |
7 | |
8 int | |
9 foo (__int128 x, int y, int z) | |
10 { | |
11 __int128 b; | |
12 *a = ((!!y ? y : x) * y | x) * 2; | |
13 if (z == 0) | |
14 { | |
15 unsigned int c = 1; | |
16 __int128 *d = &b; | |
17 for (*a = 0; *a < 1; *a += y) | |
18 ; | |
19 *a += b < (c / 0); /* { dg-warning "division by zero" } */ | |
20 goto l; | |
21 m: | |
22 while (b < 1) | |
23 ; | |
24 ++*a; | |
25 } | |
26 goto m; | |
27 l: | |
28 return 0; | |
29 } |