]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/50574 (gcc.c-torture/execute/vector-compare-1.c FAILs on...
authorRichard Guenther <rguenther@suse.de>
Fri, 30 Sep 2011 13:33:14 +0000 (13:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 30 Sep 2011 13:33:14 +0000 (13:33 +0000)
2011-09-30  Richard Guenther  <rguenther@suse.de>

PR middle-end/50574
* tree-cfg.c (verify_gimple_comparison): Compare component
mode sizes for vector comparisons.

From-SVN: r179382

gcc/ChangeLog
gcc/tree-cfg.c

index bbf1897c3d72eb2681e3db896ee6f742f1ac54c8..75303db986023e5b112f55de2306daf137c4ea08 100644 (file)
@@ -1,3 +1,9 @@
+2011-09-30  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/50574
+       * tree-cfg.c (verify_gimple_comparison): Compare component
+       mode sizes for vector comparisons.
+
 2011-09-30  Revital Eres  <revital.eres@linaro.org>
 
        * ddg.c (autoinc_var_is_used_p): New function.
index 20feff91f72755fe1bcd316bf71ba3250de7401f..5e5de8f372b8369d3af86ffa091ed86c35643e4a 100644 (file)
@@ -3229,8 +3229,8 @@ verify_gimple_comparison (tree type, tree op0, tree op1)
         }
 
       if (TYPE_VECTOR_SUBPARTS (type) != TYPE_VECTOR_SUBPARTS (op0_type)
-         || (GET_MODE_SIZE (TYPE_MODE (type))
-             != GET_MODE_SIZE (TYPE_MODE (op0_type))))
+         || (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (type)))
+             != GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (op0_type)))))
         {
           error ("invalid vector comparison resulting type");
           debug_generic_expr (type);