diff options
author | Jeff Law <law@redhat.com> | 2005-01-28 09:50:58 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2005-01-28 09:50:58 -0700 |
commit | bd16270bd8c57de83fcc827a259478be9c1967d3 (patch) | |
tree | 1c3d1f325d39dda9362f9fde5c4580025f98896d /gcc | |
parent | 139c978a44cbf1a53186af94715de74b83c542dc (diff) | |
download | gcc-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/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c | 13 |
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"} } */ |