arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / mulexactdiv-8.c
blobf452245d95dea698e7826ab31164bb4c8ce22bb0
1 /* { dg-options "-O2 -fdump-tree-optimized-raw" } */
3 #define TEST_CMP(FN, DIV, ADD, MUL) \
4 int \
5 FN (int x) \
6 { \
7 if (x & 7) \
8 __builtin_unreachable (); \
9 x /= DIV; \
10 x += ADD; \
11 return x * MUL; \
14 TEST_CMP (f1, 2, 1, 3)
15 TEST_CMP (f2, 4, 2, 2)
16 TEST_CMP (f3, 4, 3, 6)
17 TEST_CMP (f4, 8, 4, 2)
18 TEST_CMP (f5, 8, 5, 4)
20 /* { dg-final { scan-tree-dump-times {<[a-z]*_div_expr,} 5 "optimized" } } */