Commit 643afedb by Ulrich Weigand Committed by Ulrich Weigand

re PR target/44877 (C++ compiler can no longer compile dealII for VSX/Altivec vectorization)

	PR target/44877
	* config/spu/spu.c (spu_expand_builtin_1): Allow references
	(as well as pointers) as argument to mask_for_load builtins.

From-SVN: r162220
parent 0019d498
2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
PR target/44877
* config/spu/spu.c (spu_expand_builtin_1): Allow references
(as well as pointers) as argument to mask_for_load builtins.
2010-07-15 Richard Guenther <rguenther@suse.de> 2010-07-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44946 PR tree-optimization/44946
......
...@@ -6514,7 +6514,7 @@ spu_expand_builtin_1 (struct spu_builtin_description *d, ...@@ -6514,7 +6514,7 @@ spu_expand_builtin_1 (struct spu_builtin_description *d,
/* get addr */ /* get addr */
arg = CALL_EXPR_ARG (exp, 0); arg = CALL_EXPR_ARG (exp, 0);
gcc_assert (TREE_CODE (TREE_TYPE (arg)) == POINTER_TYPE); gcc_assert (POINTER_TYPE_P (TREE_TYPE (arg)));
op = expand_expr (arg, NULL_RTX, Pmode, EXPAND_NORMAL); op = expand_expr (arg, NULL_RTX, Pmode, EXPAND_NORMAL);
addr = memory_address (mode, op); addr = memory_address (mode, op);
......
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