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> 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/67573 PR target/67573
......
...@@ -745,12 +745,8 @@ ft32_arg_partial_bytes (cumulative_args_t cum_v, ...@@ -745,12 +745,8 @@ ft32_arg_partial_bytes (cumulative_args_t cum_v,
int int
ft32_is_mem_pm (rtx o) ft32_is_mem_pm (rtx o)
{ {
if (GET_CODE (o) != MEM) return (MEM_P (o)
return false; && !ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (o)));
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;
} }
/* The Global `targetm' Variable. */ /* 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