diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2005-11-03 04:16:52 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2005-11-03 04:16:52 +0000 |
commit | ac746a73f02d1a83d0fb5df74326831566693c8d (patch) | |
tree | ed56432791befe845fb76a1ebcbce5dddc4211dc /gcc/testsuite/gcc.dg | |
parent | a92c58c27304547c9c75e4cbb0a2ad92f55c17e0 (diff) | |
download | gcc-ac746a73f02d1a83d0fb5df74326831566693c8d.zip gcc-ac746a73f02d1a83d0fb5df74326831566693c8d.tar.gz gcc-ac746a73f02d1a83d0fb5df74326831566693c8d.tar.bz2 |
re PR target/24620 (internal compiler error: in find_reloads, at reload.c:3730)
ChangeLog:
PR target/24620
* config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
as operand 2.
("*insv<mode>_reg_extimm"): Likewise.
testsuite/ChangeLog:
PR target/24620
* gcc.dg/pr24620.c: New test.
From-SVN: r106422
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr24620.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr24620.c b/gcc/testsuite/gcc.dg/pr24620.c new file mode 100644 index 0000000..926a524 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr24620.c @@ -0,0 +1,27 @@ +/* This used to ICE due to a backend problem on s390. */ + +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +struct rgba +{ + unsigned char r; + unsigned char g; + unsigned char b; + unsigned char a; +}; + +void g (struct rgba); + +void f (void) +{ + struct rgba x; + + x.r = 0; + x.g = 128; + x.b = 128; + x.a = 26; + + g (x); +} + |