aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/fold-mod-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/fold-mod-1.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.dg/fold-mod-1.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/fold-mod-1.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/fold-mod-1.c
deleted file mode 100644
index bd4322e2a..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.dg/fold-mod-1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* { dg-do compile } */
-/* { dg-require-effective-target int32plus } */
-/* { dg-options "-fdump-tree-gimple -fstrict-overflow" } */
-
-#define ABS(x) (x > 0 ? x : -x)
-
-unsigned int f (unsigned int a) {
- /* (unsigned)-8 is not a power of 2. */
- return a % -8;
-}
-
-int g (int b) {
- return ABS (b) % -8;
-}
-
-int h (int c) {
- return ABS (c) % 8;
-}
-
-unsigned int k (unsigned int d) {
- return d % 8;
-}
-
-/* { dg-final { scan-tree-dump "a % (4294967288|0x0fffffff8)" "gimple" } } */
-/* { dg-final { scan-tree-dump-times " & 7" 3 "gimple" } } */
-/* { dg-final { cleanup-tree-dump "gimple" } } */