xtensa: fix PR target/82181

2017-09-11  Max Filippov  <jcmvbkbc@gmail.com>
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: r251987
This commit is contained in:
Max Filippov 2017-09-11 21:44:42 +00:00 committed by Max Filippov
parent 1d56f1768e
commit 7cd44d39d3
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2017-09-11 Max Filippov <jcmvbkbc@gmail.com>
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-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
Backport from mainline

View File

@ -605,6 +605,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));