xtensa: fix PR target/82181

2017-09-11  Max Filippov  <jcmvbkbc@gmail.com>
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
This commit is contained in:
Max Filippov 2017-09-11 21:33:36 +00:00 committed by Max Filippov
parent 3366a47408
commit 738ae6eeee
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2017-09-11 Max Filippov <jcmvbkbc@gmail.com>
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 <vidyapraveen@arm.com>
Revert r251800 and r251799.

View File

@ -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));