* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-mod-1.c
blob3f7696f17600a87895b3355fc11d6a8bc357c75d
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int32plus } */
3 /* { dg-options "-fdump-tree-gimple" } */
5 #define ABS(x) (x > 0 ? x : -x)
7 unsigned int f (unsigned int a) {
8 /* (unsigned)-8 is not a power of 2. */
9 return a % -8;
12 int g (int b) {
13 return ABS (b) % -8;
16 int h (int c) {
17 return ABS (c) % 8;
20 unsigned int k (unsigned int d) {
21 return d % 8;
24 /* { dg-final { scan-tree-dump "a % (4294967288|0fffffff8)" "gimple" } } */
25 /* { dg-final { scan-tree-dump-times " & 7" 3 "gimple" } } */
26 /* { dg-final { cleanup-tree-dump "gimple" } } */