diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-21 17:43:15 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-21 17:43:15 +0000 |
commit | d645609eb411cedc534570b6b266522143f65bd0 (patch) | |
tree | 5880dcc65eaac2cdbea1740a279a90e27f1dfee7 | |
parent | d34282cef09095ad7aa6b6cd4b5961ccf52afb67 (diff) | |
download | gcc-d645609eb411cedc534570b6b266522143f65bd0.tar.gz |
PR rtl-optimization/46178
* gcc.target/i386/pr46178.c: New test.
PR rtl-optimization/46002
* gcc.c-torture/compile/pr46002.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170370 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr46002.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr46178.c | 13 |
3 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3951e862a50..d27cd28a44a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2011-02-21 Jeff Law <law@redhat.com> + + PR rtl-optimization/46178 + * gcc.target/i386/pr46178.c: New test. + + PR rtl-optimization/46002 + * gcc.c-torture/compile/pr46002.c: New test. + 2011-02-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * g++.dg/cpp0x/lambda/lambda-conv.C: Skip scan-assembler check on diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46002.c b/gcc/testsuite/gcc.c-torture/compile/pr46002.c new file mode 100644 index 00000000000..27a3a3a284c --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr46002.c @@ -0,0 +1,10 @@ +/* { dg-options "-fira-algorithm=priority" } */ +char ** +foo (char **p, char *cmp, unsigned i) +{ + for (; *p; p++) + if (__builtin_strncmp (*p, cmp, i)) + if (i == __builtin_strlen (*p)) + break; + return p; +} diff --git a/gcc/testsuite/gcc.target/i386/pr46178.c b/gcc/testsuite/gcc.target/i386/pr46178.c new file mode 100644 index 00000000000..661e3fd9eac --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr46178.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O -m8bit-idiv -fira-algorithm=priority" } */ +/* This is the same as divmod-5.c, just with different options which + trigger an ICE. We don't look at the output. */ + +extern void foo (int, int, int, int, int, int); + +void +bar (int x, int y) +{ + foo (0, 0, 0, 0, x / y, x % y); +} + |