gcc/
* config/ft32/ft32.c Fix the memory address space predicate.
From-SVN: r227841
+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
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. */