Commit ba3ed8d8 by Jakub Jelinek Committed by Jakub Jelinek

i386.md (addqi_1_slp): Test for incdec_operand operand 1 instead of 2

	* config/i386/i386.md (addqi_1_slp): Test for incdec_operand
	operand 1 instead of 2

	* gcc.c-torture/compile/20041018-1.c: New test.

From-SVN: r89212
parent df397ce2
2004-10-18 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.md (addqi_1_slp): Test for incdec_operand
operand 1 instead of 2
2004-10-18 Kazu Hirata <kazu@cs.umass.edu> 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
* loop-unroll.c: Fix comment typos. * loop-unroll.c: Fix comment typos.
......
...@@ -6362,7 +6362,7 @@ ...@@ -6362,7 +6362,7 @@
} }
} }
[(set (attr "type") [(set (attr "type")
(if_then_else (match_operand:QI 2 "incdec_operand" "") (if_then_else (match_operand:QI 1 "incdec_operand" "")
(const_string "incdec") (const_string "incdec")
(const_string "alu1"))) (const_string "alu1")))
(set_attr "mode" "QI")]) (set_attr "mode" "QI")])
......
2004-10-18 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20041018-1.c: New test.
2004-10-18 Ben Elliston <bje@au.ibm.com> 2004-10-18 Ben Elliston <bje@au.ibm.com>
* gcc.dg/ppc-sdata-1.c: Update to consider the possibility of the * gcc.dg/ppc-sdata-1.c: Update to consider the possibility of the
......
void
foo (int y, int z, unsigned char **t, int **c, int *b)
{
int i, j, k;
unsigned char a[2];
a[0] = 0;
a[1] = 0;
for (j = 0; j < z; j++)
for (i = 0; i < y; i++, a[0] += 3)
for (k = 0; k < 3; k++)
c[0][k] += 3 * b[k];
for (i = 0; i < 3; i++)
if (t[0][i] + c[0][i] / a[0] <= 0)
t[0][i] = 0;
else
t[0][i] = t[0][i] + c[0][i] / a[0];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment