diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-01 01:01:38 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-01 01:01:38 +0000 |
commit | da28ed247f1197c8a909039a9ac04f222ff4fbbe (patch) | |
tree | 6695bfe875cd231e5b9de23862d2deddab1b9692 /gcc/testsuite | |
parent | 7cc284b85a706ea1561ac1a2b9efc9636c81e8dd (diff) | |
download | gcc-da28ed247f1197c8a909039a9ac04f222ff4fbbe.tar.gz |
gcc/
* reload.c (find_reloads): Do not use the mode specified in the insn
pattern as reload mode for address operands. Do not generate optional
reloads for operands where a mandatory reload was already pushed.
Generate optional reloads only in the final pass though find_reloads.
(have_replacement_p): New function.
gcc/testsuite/
* gcc.dg/20030129-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62225 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20030129-1.c | 37 |
2 files changed, 41 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 87a814f50fc..acf883d108d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-01-31 Ulrich Weigand <uweigand@de.ibm.com> + + * gcc.dg/20030129-1.c: New test. + 2003-01-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> PR c++/8849 diff --git a/gcc/testsuite/gcc.dg/20030129-1.c b/gcc/testsuite/gcc.dg/20030129-1.c new file mode 100644 index 00000000000..0b745a901b1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20030129-1.c @@ -0,0 +1,37 @@ +/* This used to ICE due to a reload bug on s390*. */ + +/* { dg-do compile { target s390*-*-* } } */ +/* { dg-options "-O2" } */ + +int f (unsigned int); +void g (void *); + +void test (void *p, void *dummy) +{ + unsigned int flags = 0; + + if (dummy) + g (dummy); + + if (p) + flags |= 0x80000000; + + asm volatile ("" : : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"); + + if (dummy) + g (dummy); + + if (p) + { + flags |= 0x20000000|0x80000000; + + if (!f (0)) + flags &= ~0x80000000; + } + + f (flags); + + if (dummy) + g (dummy); +} + |