From 738ae6eeee92a7317c889ebfa3df978cec997415 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Mon, 11 Sep 2017 21:33:36 +0000 Subject: [PATCH] xtensa: fix PR target/82181 2017-09-11 Max Filippov gcc/ * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both words of E_DImode object are reachable by xtensa_uimm8x4 access. From-SVN: r251986 --- gcc/ChangeLog | 6 ++++++ gcc/config/xtensa/xtensa.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index baa67840829..bcbd2b8d188 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-09-11 Max Filippov + + PR target/82181 + * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both + words of E_DImode object are reachable by xtensa_uimm8x4 access. + 2017-09-11 Vidya Praveen Revert r251800 and r251799. diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index f7ce08478aa..0f84cf3a7a0 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -615,6 +615,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode) case E_HImode: return xtensa_uimm8x2 (v); + case E_DImode: case E_DFmode: return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4)); -- 2.30.2