re PR target/24620 (internal compiler error: in find_reloads, at reload.c:3730)
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 3 Nov 2005 04:16:52 +0000 (04:16 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 3 Nov 2005 04:16:52 +0000 (04:16 +0000)
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

gcc/ChangeLog
gcc/config/s390/s390.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr24620.c [new file with mode: 0644]

index 8de34f21c4b5a184716a678b1a203adb01480e38..fc17cb4da4355a59ac2dc8d5c93ca27ada97b6cf 100644 (file)
@@ -1,3 +1,10 @@
+2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       PR target/24620
+       * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
+       as operand 2.
+       ("*insv<mode>_reg_extimm"): Likewise.
+
 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/24329
index bc9e4c362629eb68e689ff40c7b35630a346effe..4bf6d8a8854393a55c1b7fae92263850ea30cf2f 100644 (file)
   [(set (zero_extract:P (match_operand:P 0 "register_operand" "+d")
                        (const_int 16)
                        (match_operand 1 "const_int_operand" "n"))
-       (match_operand:P 2 "const_int_operand" "K"))]
+       (match_operand 2 "const_int_operand" "n"))]
   "TARGET_ZARCH
    && INTVAL (operands[1]) >= 0
    && INTVAL (operands[1]) < BITS_PER_WORD
   [(set (zero_extract:P (match_operand:P 0 "register_operand" "+d")
                        (const_int 32)
                        (match_operand 1 "const_int_operand" "n"))
-       (match_operand:P 2 "const_int_operand" "Os"))]
+       (match_operand 2 "const_int_operand" "n"))]
   "TARGET_EXTIMM
    && INTVAL (operands[1]) >= 0
    && INTVAL (operands[1]) < BITS_PER_WORD
index 393452736f059408db58a7ba292176fd402c2e29..e35fcef8b80a2f3e92e0f3c13ef9b0c3fdab95d4 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       PR target/24620
+       * gcc.dg/pr24620.c: New test.
+       
 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/24329
diff --git a/gcc/testsuite/gcc.dg/pr24620.c b/gcc/testsuite/gcc.dg/pr24620.c
new file mode 100644 (file)
index 0000000..926a524
--- /dev/null
@@ -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);
+}
+