This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50574] gcc.c-torture/execute/vector-compare-1.c FAILs on SPARC
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Sep 2011 12:47:32 +0000
- Subject: [Bug tree-optimization/50574] gcc.c-torture/execute/vector-compare-1.c FAILs on SPARC
- Auto-submitted: auto-generated
- References: <bug-50574-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50574
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-30 12:47:32 UTC ---
FYI
Index: tree-cfg.c
===================================================================
--- tree-cfg.c (revision 179378)
+++ tree-cfg.c (working copy)
@@ -3229,8 +3302,8 @@ verify_gimple_comparison (tree type, tre
}
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);