public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
@ 2015-08-07 8:53 doko at gcc dot gnu.org
2015-08-07 11:54 ` [Bug target/67143] " ktkachov at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: doko at gcc dot gnu.org @ 2015-08-07 8:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
Bug ID: 67143
Summary: [5/6 Regression] ICE (could not split insn) on
aarch64-linux-gnu
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
seen when building mysql trunk using trunk r226068, and gcc-5-branch r226354:
$ cat btr0btr.ii
long a, c;
bool b;
int d;
void ut_dbg_assertion_failed() __attribute__((noreturn));
long dict_index_is_spatial(int *);
void btr_block_get_func(char *);
long btr_page_get_level_low(unsigned char *);
void btr_validate_level(long p1, bool) {
unsigned char *e;
while (p1 != btr_page_get_level_low(e)) {
if (__builtin_expect(b, 0))
ut_dbg_assertion_failed();
if (dict_index_is_spatial(&d))
while (c != 5535) {
__sync_add_and_fetch(&a, 536870912);
btr_block_get_func("");
}
}
for (long i; i; ++i)
btr_validate_level(-i, true);
}
$ g++ -Wno-write-strings -c -g -O3 btr0btr.ii
btr0btr.ii: In function 'void btr_validate_level(long int, bool)':
btr0btr.ii:21:1: error: could not split insn
}
^
(insn 300 298 303 (parallel [
(set (mem/v:DI (reg/f:DI 0 x0 [234]) [-1 S8 A64])
(unspec_volatile:DI [
(plus:DI (mem/v:DI (reg/f:DI 0 x0 [234]) [-1 S8 A64])
(const_int 536870912 [0x20000000]))
(const_int 5 [0x5])
] UNSPECV_ATOMIC_OP))
(clobber (reg:CC 66 cc))
(clobber (reg:DI 1 x1 [490]))
(clobber (reg:SI 2 x2 [491]))
]) btr0btr.ii:15 2451 {atomic_adddi}
(expr_list:REG_DEAD (reg/f:DI 0 x0 [234])
(expr_list:REG_UNUSED (reg:CC 66 cc)
(expr_list:REG_UNUSED (reg:SI 2 x2 [491])
(expr_list:REG_UNUSED (reg:DI 1 x1 [490])
(nil))))))
btr0btr.ii:21:1: internal compiler error: in final_scan_insn, at final.c:3020
0x9eadbf _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
../../src/gcc/rtl-error.c:110
0x80dfc7 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
../../src/gcc/final.c:3020
0x80e287 final(rtx_insn*, _IO_FILE*, int)
../../src/gcc/final.c:2089
0x80e78f rest_of_handle_final
../../src/gcc/final.c:4488
0x80e78f execute
../../src/gcc/final.c:4563
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/67143] [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
@ 2015-08-07 11:54 ` ktkachov at gcc dot gnu.org
2015-08-07 12:02 ` mwahab at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2015-08-07 11:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
ktkachov at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktkachov at gcc dot gnu.org,
| |mwahab at gcc dot gnu.org
--- Comment #1 from ktkachov at gcc dot gnu.org ---
Seems related to something Matthew has been working on recently?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/67143] [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
2015-08-07 11:54 ` [Bug target/67143] " ktkachov at gcc dot gnu.org
@ 2015-08-07 12:02 ` mwahab at gcc dot gnu.org
2015-08-08 5:13 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mwahab at gcc dot gnu.org @ 2015-08-07 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
mwahab at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |mwahab at gcc dot gnu.org
--- Comment #2 from mwahab at gcc dot gnu.org ---
(In reply to ktkachov from comment #1)
> Seems related to something Matthew has been working on recently?
No, it looks like something to do with the <lconst_atomic> constratint
introduced by https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=217076
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/67143] [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
2015-08-07 11:54 ` [Bug target/67143] " ktkachov at gcc dot gnu.org
2015-08-07 12:02 ` mwahab at gcc dot gnu.org
@ 2015-08-08 5:13 ` rguenth at gcc dot gnu.org
2015-08-14 15:06 ` mwahab at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-08-08 5:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/67143] [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
` (2 preceding siblings ...)
2015-08-08 5:13 ` rguenth at gcc dot gnu.org
@ 2015-08-14 15:06 ` mwahab at gcc dot gnu.org
2015-08-20 7:09 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mwahab at gcc dot gnu.org @ 2015-08-14 15:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
--- Comment #3 from mwahab at gcc dot gnu.org ---
Author: mwahab
Date: Fri Aug 14 15:05:42 2015
New Revision: 226895
URL: https://gcc.gnu.org/viewcvs?rev=226895&root=gcc&view=rev
Log:
gcc/
2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
PR target/67143
* config/aarch64/atomics.md (atomic_<optab><mode>): Replace
'lconst_atomic' with 'const_atomic'.
(atomic_fetch_<optab><mode>): Likewise.
(atomic_<optab>_fetch<mode>): Likewise.
* config/aarch64/iterators.md (lconst-atomic): Move below
'const_atomic'.
(const_atomic): New.
gcc/testsuite/
2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
Matthias Klose <doko@debian.org>
PR target/67143
* gcc.c-torture/compile/pr67143.c: New
* gcc.target/aarch64/atomic-op-imm.c
(atomic_fetch_add_negative_RELAXED): New.
(atomic_fetch_sub_negative_ACQUIRE): New.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr67143.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/aarch64/atomics.md
trunk/gcc/config/aarch64/iterators.md
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.target/aarch64/atomic-op-imm.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/67143] [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
` (3 preceding siblings ...)
2015-08-14 15:06 ` mwahab at gcc dot gnu.org
@ 2015-08-20 7:09 ` pinskia at gcc dot gnu.org
2015-09-23 9:48 ` mwahab at gcc dot gnu.org
2015-09-30 3:02 ` ramana at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-08-20 7:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-08-20
Ever confirmed|0 |1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/67143] [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
` (4 preceding siblings ...)
2015-08-20 7:09 ` pinskia at gcc dot gnu.org
@ 2015-09-23 9:48 ` mwahab at gcc dot gnu.org
2015-09-30 3:02 ` ramana at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: mwahab at gcc dot gnu.org @ 2015-09-23 9:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
--- Comment #5 from mwahab at gcc dot gnu.org ---
Author: mwahab
Date: Wed Sep 23 09:48:16 2015
New Revision: 228037
URL: https://gcc.gnu.org/viewcvs?rev=228037&root=gcc&view=rev
Log:
[Aarch64][target/PR 67143][5.2] Backport correct constraints for atomic
operations.
gcc/
2015-09-23 Matthew Wahab <matthew.wahab@arm.com>
Backport from mainline
2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
PR target/67143
* config/aarch64/atomics.md (atomic_<optab><mode>): Replace
'lconst_atomic' with 'const_atomic'.
(atomic_fetch_<optab><mode>): Likewise.
(atomic_<optab>_fetch<mode>): Likewise.
* config/aarch64/iterators.md (lconst-atomic): Move below
'const_atomic'.
(const_atomic): New.
gcc/testsuite/
2015-09-23 Matthew Wahab <matthew.wahab@arm.com>
Backport from mainline
2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
Matthias Klose <doko@debian.org>
PR target/67143
* gcc.c-torture/compile/pr67143.c: New
* gcc.target/aarch64/atomic-op-imm.c
(atomic_fetch_add_negative_RELAXED): New.
(atomic_fetch_sub_negative_ACQUIRE): New.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/compile/pr67143.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/config/aarch64/atomics.md
branches/gcc-5-branch/gcc/config/aarch64/iterators.md
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gcc.target/aarch64/atomic-op-imm.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/67143] [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
` (5 preceding siblings ...)
2015-09-23 9:48 ` mwahab at gcc dot gnu.org
@ 2015-09-30 3:02 ` ramana at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: ramana at gcc dot gnu.org @ 2015-09-30 3:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Fixed then.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-09-30 3:02 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 8:53 [Bug target/67143] New: [5/6 Regression] ICE (could not split insn) on aarch64-linux-gnu doko at gcc dot gnu.org
2015-08-07 11:54 ` [Bug target/67143] " ktkachov at gcc dot gnu.org
2015-08-07 12:02 ` mwahab at gcc dot gnu.org
2015-08-08 5:13 ` rguenth at gcc dot gnu.org
2015-08-14 15:06 ` mwahab at gcc dot gnu.org
2015-08-20 7:09 ` pinskia at gcc dot gnu.org
2015-09-23 9:48 ` mwahab at gcc dot gnu.org
2015-09-30 3:02 ` ramana at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).