Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/divmod-7.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-require-effective-target divmod_simode } */ /* { dg-options "-O2 -fdump-tree-widening_mul-details" } */ int f(int x, int y) { int q = 0, r1 = 0, r2 = 0; extern int cond; if (cond) q = x / y; else { r1 = x % y; return q + r1; } r2 = x % y; return q + r2; } /* { dg-final { scan-tree-dump-times "DIVMOD" 1 "widening_mul" } } */