Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / divmod-7.c
blobfaa90b3ac8f211a4da2486594d7ccc13f8f5a19c
1 /* { dg-require-effective-target divmod_simode } */
2 /* { dg-options "-O2 -fdump-tree-widening_mul-details" } */
4 int f(int x, int y)
6 int q = 0, r1 = 0, r2 = 0;
7 extern int cond;
9 if (cond)
10 q = x / y;
11 else
13 r1 = x % y;
14 return q + r1;
17 r2 = x % y;
18 return q + r2;
21 /* { dg-final { scan-tree-dump-times "DIVMOD" 1 "widening_mul" } } */