Commit a481f93b by James Bowman Committed by James Bowman

[FT32] Fix memory address space predicate.

gcc/

	* config/ft32/ft32.c Fix the memory address space predicate.

From-SVN: r227841
parent f0f51b9f
2015-09-16 James Bowman <james.bowman@ftdichip.com>
* config/ft32/ft32.c Fix the memory address space predicate.
2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/67573
......
......@@ -745,12 +745,8 @@ ft32_arg_partial_bytes (cumulative_args_t cum_v,
int
ft32_is_mem_pm (rtx o)
{
if (GET_CODE (o) != MEM)
return false;
if (MEM_EXPR (o))
return TYPE_ADDR_SPACE (TREE_TYPE (MEM_EXPR (o))) == ADDR_SPACE_PM;
else
return MEM_ADDR_SPACE (o) == ADDR_SPACE_PM;
return (MEM_P (o)
&& !ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (o)));
}
/* The Global `targetm' Variable. */
......
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