From 08bb186611f199c39513e59bf81eec97b83edbe0 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Mon, 11 Sep 2017 21:53:38 +0000 Subject: [PATCH] xtensa: fix PR target/82181 2017-09-11 Max Filippov gcc/ Backport from mainline * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both words of DImode object are reachable by xtensa_uimm8x4 access. From-SVN: r251990 --- gcc/ChangeLog | 7 +++++++ gcc/config/xtensa/xtensa.c | 1 + 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0dd67c14a4da..41a341c37fda 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-09-11 Max Filippov + + Backport from mainline + PR target/82181 + * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both + words of DImode object are reachable by xtensa_uimm8x4 access. + 2017-09-06 Bill Schmidt Backport from mainline: diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 1c15a7664d9b..adbe13b963e3 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -634,6 +634,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode) case HImode: return xtensa_uimm8x2 (v); + case DImode: case DFmode: return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4)); -- 2.47.2