Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/divmod-7.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-require-effective-target divmod_simode } */ |
2 /* { dg-options "-O2 -fdump-tree-widening_mul-details" } */ | |
3 | |
4 int f(int x, int y) | |
5 { | |
6 int q = 0, r1 = 0, r2 = 0; | |
7 extern int cond; | |
8 | |
9 if (cond) | |
10 q = x / y; | |
11 else | |
12 { | |
13 r1 = x % y; | |
14 return q + r1; | |
15 } | |
16 | |
17 r2 = x % y; | |
18 return q + r2; | |
19 } | |
20 | |
21 /* { dg-final { scan-tree-dump-times "DIVMOD" 1 "widening_mul" } } */ |