Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/divmod-5.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-require-effective-target divmod_simode } */ |
2 /* { dg-options "-O2 -fdump-tree-widening_mul-details" } */ | |
3 /* div and mod are not in same bb and | |
4 bb's containing div and mod don't dominate each other. */ | |
5 | |
6 int f(int x, int y) | |
7 { | |
8 int q = 0; | |
9 int r = 0; | |
10 extern int cond; | |
11 | |
12 if (cond) | |
13 q = x / y; | |
14 | |
15 r = x % y; | |
16 return q + r; | |
17 } | |
18 | |
19 /* { dg-final { scan-tree-dump-times "DIVMOD" 0 "widening_mul" } } */ |