aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2005-01-28 09:50:58 -0700
committerJeff Law <law@gcc.gnu.org>2005-01-28 09:50:58 -0700
commitbd16270bd8c57de83fcc827a259478be9c1967d3 (patch)
tree1c3d1f325d39dda9362f9fde5c4580025f98896d /gcc
parent139c978a44cbf1a53186af94715de74b83c542dc (diff)
downloadgcc-bd16270bd8c57de83fcc827a259478be9c1967d3.zip
gcc-bd16270bd8c57de83fcc827a259478be9c1967d3.tar.gz
gcc-bd16270bd8c57de83fcc827a259478be9c1967d3.tar.bz2
* gcc.dg/tree-ssa/20050128-1.c: New test.
From-SVN: r94377
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c13
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 03c2a42..400c86e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-24 Jeff Law <law@redhat.com>
+
+ * gcc.dg/tree-ssa/20050128-1.c: New test.
+
2005-01-28 Richard Sandiford <rsandifo@redhat.com>
* gcc.target/frv/all-mdpackh-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c
new file mode 100644
index 0000000..ea48b26
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-generic" } */
+
+int
+foo (int align)
+{
+ int off = 0 % align;
+ return off ? align - off : 0;
+}
+
+/* We should have optimized away the mod operator before we genericized
+ the code. */
+/* { dg-final { scan-tree-dump-times "%" 0 "generic"} } */