PR rtl-optimization/27907
* expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
FLOAT_TRUNCATE.
* gcc.c-torture/compile/pr27907.c: New test.
From-SVN: r115760
+2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
+
+ PR rtl-optimization/27907
+ * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
+ FLOAT_TRUNCATE.
+
2006-07-25 Roger Sayle <roger@eyesopen.com>
PR middle-end/28473
case ZERO_EXTEND:
case SIGN_EXTEND:
case TRUNCATE:
+ case FLOAT_EXTEND:
+ case FLOAT_TRUNCATE:
convert_move (target, op1, code == ZERO_EXTEND);
return target;
+2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
+
+ PR rtl-optimization/27907
+ * gcc.c-torture/compile/pr27907.c: New test.
+
2006-07-26 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* gfortran.dg/mclock.f90: New test.
--- /dev/null
+typedef double fann_type;
+typedef struct { } _G_fpos64_t;
+struct fann_neuron
+{
+ fann_type value;
+}
+__attribute__ ((packed));
+struct fann_layer
+{
+ struct fann_neuron *last_neuron;
+};
+struct fann
+{
+ struct fann_layer *first_layer;
+};
+fann_run (struct fann *ann, fann_type * input)
+{
+ struct fann_layer *layer_it, *layer_it2, *last_layer;
+ for (layer_it = ann->first_layer + 1; layer_it != last_layer; layer_it++)
+ {
+ ((layer_it - 1)->last_neuron - 1)->value = 1;
+ }
+}