4fecb16cef
Memory references to DI mode objects could incorrectly be created at offsets that are not supported by instructions l32i/s32i, resulting in ICE at a stage when access to the object is split into access to its subwords: drivers/staging/rtl8188eu/core/rtw_ap.c:445:1: internal compiler error: in change_address_1, at emit-rtl.c:2126 Fixes: https://lkml.org/lkml/2017/9/10/151 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
32 lines
957 B
Diff
32 lines
957 B
Diff
From 8dd3af97bb6ccb3dfd6cbe20c5a28ce80fcd0de7 Mon Sep 17 00:00:00 2001
|
|
From: jcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
|
|
Date: Mon, 11 Sep 2017 21:53:38 +0000
|
|
Subject: [PATCH] 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.
|
|
|
|
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
|
|
---
|
|
gcc/config/xtensa/xtensa.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
|
|
index 3c0096113775..3eb4db85b971 100644
|
|
--- a/gcc/config/xtensa/xtensa.c
|
|
+++ b/gcc/config/xtensa/xtensa.c
|
|
@@ -612,6 +612,7 @@ xtensa_mem_offset (unsigned v, enum machine_mode mode)
|
|
case HImode:
|
|
return xtensa_uimm8x2 (v);
|
|
|
|
+ case DImode:
|
|
case DFmode:
|
|
return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4));
|
|
|
|
--
|
|
2.1.4
|
|
|