Commit a0f39282 by Janis Johnson Committed by Janis Johnson

re PR target/35839 (Altivec with the vectorizer causes an ICE in rs6000_check_sdmode)

	PR target/35839
	* config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
	kinds of indirect references.

From-SVN: r134107
parent 7f62878c
2008-04-08 Janis Johnson <janis187@us.ibm.com>
PR target/35839
* config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
kinds of indirect references.
2008-04-08 David Edelsohn <edelsohn@gnu.org> 2008-04-08 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
......
...@@ -11226,9 +11226,6 @@ rs6000_check_sdmode (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) ...@@ -11226,9 +11226,6 @@ rs6000_check_sdmode (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
return NULL_TREE; return NULL_TREE;
} }
gcc_assert (TREE_CODE (*tp) != ALIGN_INDIRECT_REF);
gcc_assert (TREE_CODE (*tp) != MISALIGNED_INDIRECT_REF);
switch (TREE_CODE (*tp)) switch (TREE_CODE (*tp))
{ {
case VAR_DECL: case VAR_DECL:
...@@ -11237,6 +11234,8 @@ rs6000_check_sdmode (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) ...@@ -11237,6 +11234,8 @@ rs6000_check_sdmode (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
case RESULT_DECL: case RESULT_DECL:
case REAL_CST: case REAL_CST:
case INDIRECT_REF: case INDIRECT_REF:
case ALIGN_INDIRECT_REF:
case MISALIGNED_INDIRECT_REF:
case VIEW_CONVERT_EXPR: case VIEW_CONVERT_EXPR:
if (TYPE_MODE (TREE_TYPE (*tp)) == SDmode) if (TYPE_MODE (TREE_TYPE (*tp)) == SDmode)
return *tp; return *tp;
......
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