+2007-09-12 Dorit Nuzman <dorit@il.ibm.com>
+
+ PR tree-optimization/33373
+ * tree-vect-analyze (vect_determine_vectorization_factor): Call
+ TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT.
+
2007-09-12 Jan Hubicka <jh@suse.cz>
PR target/33393
+2007-09-12 Dorit Nuzman <dorit@il.ibm.com>
+
+ PR tree-optimization/33373
+ * gcc.dg/vect/pr33373.c: New test.
+
2007-09-12 Ben Elliston <bje@au.ibm.com>
* lib/target-supports.exp (check_effective_target_vect_no_double):
--- /dev/null
+/* { dg-do compile } */
+void DOSMEM_FillIsrTable(int*isr) {
+ int i;
+
+ for (i=0; i<256; i++)
+ isr[i]=(((short)((i*4) & 0xFFFF)) | (0xf000 & 0xFFFF) << 16);
+}
+/* { dg-final { cleanup-tree-dump "vect" } } */
operation = GIMPLE_STMT_OPERAND (stmt, 1);
if (TREE_CODE (operation) == NOP_EXPR
|| TREE_CODE (operation) == CONVERT_EXPR
- || TREE_CODE (operation) == WIDEN_MULT_EXPR)
+ || TREE_CODE (operation) == WIDEN_MULT_EXPR)
{
tree rhs_type = TREE_TYPE (TREE_OPERAND (operation, 0));
- if (TYPE_SIZE_UNIT (rhs_type) < TYPE_SIZE_UNIT (scalar_type))
- scalar_type = TREE_TYPE (TREE_OPERAND (operation, 0));
+ if (TREE_INT_CST_LOW (TYPE_SIZE_UNIT (rhs_type)) <
+ TREE_INT_CST_LOW (TYPE_SIZE_UNIT (scalar_type)))
+ scalar_type = rhs_type;
}
if (vect_print_dump_info (REPORT_DETAILS))