[Bug target/94591] [8/9/10/11 Regression] Assembler messages: Error: operand mismatch -- `rev64 v0.2d,v0.2d' (or `rev32 v0.2s,v0.2s')

2020-05-19 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94591 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org

[Bug rtl-optimization/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-09-09 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 --- Comment #2 from Alex Coplan --- I'll take a look, thanks.

[Bug target/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-09-10 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 --- Comment #6 from Alex Coplan --- I have a patch, just testing it now.

[Bug rtl-optimization/96475] direct threaded interpreter with computed gotos generates suboptimal dispatch loop

2020-09-10 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96475 --- Comment #15 from Alex Coplan --- > there are similar ICEs while running the GCC testsuite for aarch64-elf Confirmed, seeing these ICEs when running the testsuite on aarch64-none-linux-gnu.

[Bug rtl-optimization/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-09-09 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 --- Comment #5 from Alex Coplan --- This just looks like a missing pattern which we've started noticing since the new canonicalisation was introduced. I imagine reinstating the *add__multp2 pattern and rewriting it to use shifts instead will

[Bug rtl-optimization/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-09-09 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 --- Comment #4 from Alex Coplan --- Ok, the following reduced testcase ICEs at -O2: int h(void); struct c d; struct c { int e[1]; }; void f(void) { int g; for (;; g = h()) { int *i = [g]; asm("" : "=Q"(*i)); } }

[Bug rtl-optimization/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-09-09 Thread acoplan at gcc dot gnu.org
|1 Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #3 from Alex Coplan --- Confirmed. GCC trunk ICEs on AArch64 when compiling kernel/cgroup/cgroup.c. Seems to happen when

[Bug target/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-09-10 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 --- Comment #7 from Alex Coplan --- Patch up for review: https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553605.html

[Bug rtl-optimization/96796] [9 Regression] aarch64: ICE during RTL pass: reload

2020-08-26 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96796 --- Comment #3 from Alex Coplan --- Adding -fcommon, I can reproduce this ICE on trunk. The default changed in GCC 10 (as of 6271dd984d7f920d4fb17ad37af6a1f8e6b796dc).

[Bug rtl-optimization/96796] [9/10/11 Regression] aarch64: ICE during RTL pass: reload

2020-08-26 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96796 --- Comment #5 from Alex Coplan --- Started with this change: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8eaff6ef97836100801f7b40dc03f77fbebe03ac

[Bug target/97161] New: [8/9/10/11 Regression] aarch64: Wrong code at -O2/-O3 since r8-4308-g13494fcb3

2020-09-22 Thread acoplan at gcc dot gnu.org
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following C program: __attribute__ ((noinline)) void f(char *p, char x) { if (x != 1) __builtin_abort

[Bug target/97161] [8/9/10/11 Regression] aarch64: Wrong code at -O2/-O3 since r8-4308-g13494fcb3

2020-09-22 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97161 --- Comment #2 from Alex Coplan --- Ah, apologies for the noise - thanks for clarifying.

[Bug tree-optimization/97079] [11 Regression] aarch64, SVE: ICE in SLP recognizer since r11-3148-g8d3767c30240c901a493d82d9d20f306b2f0152d

2020-09-17 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97079 --- Comment #2 from Alex Coplan --- Ah, yes, the ICE re-appears immediately prior to r11-3095-g47ddf4c7b1d4471cb9534f27844ab5e4279c2168, so the bug was temporarily hidden on trunk. I'll do another bisect, thanks.

[Bug tree-optimization/97085] New: [11 Regression] aarch64, SVE: ICE in gimple_expand_vec_cond_expr since r11-2610-ga1ee6d507b

2020-09-17 Thread acoplan at gcc dot gnu.org
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: int a, b, c, d; short e, g; unsigned short f; void h() { for (; d

[Bug tree-optimization/97079] [11 Regression] aarch64, SVE: ICE in SLP recognizer since r11-3148-g8d3767c30240c901a493d82d9d20f306b2f0152d

2020-09-17 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97079 --- Comment #3 from Alex Coplan --- It seems this was introduced with r11-2817-gcdb2e365fc0dba2ee052827e5ca65234ca82d605: commit cdb2e365fc0dba2ee052827e5ca65234ca82d605 Author: Martin Liska Date: Fri Jul 31 09:53:39 2020 SLP: support

[Bug rtl-optimization/97092] New: [10/11 Regression] aarch64, SVE: ICE in ira-color.c since r10-4752-g2d56600c

2020-09-17 Thread acoplan at gcc dot gnu.org
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: void g(void); long a; signed char b(int c, int d) { return c + d; } void e(void

[Bug target/94591] [8/9/10/11 Regression] Assembler messages: Error: operand mismatch -- `rev64 v0.2d,v0.2d' (or `rev32 v0.2s,v0.2s')

2020-05-29 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94591 Alex Coplan changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/94591] [8/9/10/11 Regression] Assembler messages: Error: operand mismatch -- `rev64 v0.2d,v0.2d' (or `rev32 v0.2s,v0.2s')

2020-05-20 Thread acoplan at gcc dot gnu.org
|ASSIGNED Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org --- Comment #5 from Alex Coplan --- Re-opening to track backporting progress.

[Bug tree-optimization/97104] New: [11 Regression] aarch64, SVE: ICE in vect_get_loop_mask since r11-3070-g783dc66f9cc

2020-09-18 Thread acoplan at gcc dot gnu.org
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: int a, b, c, d; short e; void f() { unsigned g; for (; d; d++) { g

[Bug tree-optimization/97104] [11 Regression] aarch64, SVE: ICE in vect_get_loop_mask since r11-3070-g783dc66f9cc

2020-09-18 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97104 Alex Coplan changed: What|Removed |Added Keywords||ice-on-valid-code Target|

[Bug target/97141] New: [10/11 Regression] aarch64, SVE: ICE in decompose, at rtl.h (during expand) since r10-4676-g9c437a108a

2020-09-21 Thread acoplan at gcc dot gnu.org
: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: int a; short b, c; short d(short e, short f) { return e + f; } void

[Bug tree-optimization/97135] New: [11 Regression] Wrong code at -Os since r11-408-g84935c98221

2020-09-21 Thread acoplan at gcc dot gnu.org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: long c; long *d = int a, e, f; int main(void) { for (; f <= 5; f++) { e = 0; for (

[Bug target/97144] New: [10/11 Regression] SVE: ICE (could not split insn) in final_scan_insn_1 since r10-2553-g0fdc30bcf56

2020-09-21 Thread acoplan at gcc dot gnu.org
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: int a, b = 5, c = 3; char d; char e[1]; int f[] = {0, 0, 1}; short g

[Bug tree-optimization/97079] New: [11 Regression] aarch64, SVE: ICE in SLP recognizer since r11-3148-g8d3767c30240c901a493d82d9d20f306b2f0152d

2020-09-16 Thread acoplan at gcc dot gnu.org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Since r11-3148-g8d3767c30240c901a493d82d9d20f306b2f0152d

[Bug jit/95498] unhandled conversion

2020-07-13 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95498 --- Comment #5 from Alex Coplan --- Created attachment 48867 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48867=edit Minimal reproducer I've done some exhaustive testing of which combinations of casts are allowed. It seems that any

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #4 from Alex Coplan --- I left the updated version running for ~1 hour and it didn't finish compiling.

[Bug middle-end/96044] New: GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread acoplan at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- On the following code: void f(void) { __builtin_jn(7,7); } GCC since 4.3 hangs in a tight loop inside MPFR code trying

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #3 from Alex Coplan --- Ah, it appears I just wasn't being patient enough. It seems you can make the constant folding take longer (arbitrarily long?) by adding another digit to the arguments. This code: void f(void) {

[Bug target/95676] [armhf] g++ mis-compiles code at -O1 or above

2020-06-23 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95676 Alex Coplan changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/95526] [11 Regression] aarch64: Wrong code accessing complex number from varargs

2020-06-04 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95526 --- Comment #4 from Alex Coplan --- Ok, bootstrap and test looks good. Cleaned up a bunch of recent testsuite failures: +PASS: gcc.dg/compat/scalar-by-value-3 c_compat_x_tst.o-c_compat_y_tst.o execute +PASS: gcc.dg/compat/scalar-by-value-4

[Bug target/95526] [11 Regression] aarch64: Wrong code accessing complex number from varargs

2020-06-04 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95526 Alex Coplan changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/95056] [11 Regression] slp-perm-9.c fails on aarch64 after gbc484e250990393e887f7239157cc85ce6fadcce

2020-06-09 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95056 Alex Coplan changed: What|Removed |Added Last reconfirmed||2020-06-09 Status|UNCONFIRMED

[Bug target/95055] [11 Regression] gcc.dg/compat/scalar-by-value-3 fails on aarch64 after r11-165-geb72dc663e9070b281be83a80f6f838a3a878822

2020-06-05 Thread acoplan at gcc dot gnu.org
|--- |FIXED CC||acoplan at gcc dot gnu.org --- Comment #1 from Alex Coplan --- Hi Christophe, see PR95526: this should be fixed by ab56390384cd5168b548ff07e6f0c9c4d41420fb.

[Bug target/95526] [11 Regression] aarch64: Wrong code accessing complex number from varargs

2020-06-05 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95526 Alex Coplan changed: What|Removed |Added CC||clyon at gcc dot gnu.org --- Comment #8

[Bug target/95055] [11 Regression] gcc.dg/compat/scalar-by-value-3 fails on aarch64 after r11-165-geb72dc663e9070b281be83a80f6f838a3a878822

2020-06-05 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95055 Alex Coplan changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #2 from Alex Coplan

[Bug target/95650] New: aarch64: Missed optimization storing addition of two shorts

2020-06-12 Thread acoplan at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- With the following C code: void foo(unsigned short a, unsigned short b, unsigned short *ptr) { *ptr = a + b; } AArch64 GCC at -O2

[Bug target/95650] aarch64: Missed optimization storing addition of two shorts

2020-06-12 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95650 --- Comment #3 from Alex Coplan --- I think clang's optimisation is sound here. C says that we add two shorts as int and then truncate to short (i.e. reduce mod 16). The question is whether the top bits being set (which the ABI allows) can

[Bug target/95526] [11 Regression] aarch64: Wrong code accessing complex number from varargs

2020-06-04 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95526 --- Comment #3 from Alex Coplan --- I'm happy to test the fix.

[Bug target/95526] New: aarch64: Wrong code accessing complex number from varargs

2020-06-04 Thread acoplan at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Commit eb72dc663e9070b281be83a80f6f838a3a878822 introduces a wrong code bug on AArch64. This causes the test case gcc/testsuite/gcc.dg/complex

[Bug jit/69435] Truncated lines in jit.log

2020-07-20 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69435 Alex Coplan changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/97317] [11 Regression] ICE in verify_range, at value-range.cc:369

2020-10-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97317 Alex Coplan changed: What|Removed |Added Build||x86_64-linux-gnu Target Milestone|---

[Bug tree-optimization/97317] New: [11 Regression] ICE in verify_range, at value-range.cc:369

2020-10-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: struct a { unsigned c : 17; }; struct a b; int d(void) { short e = b.c; return e ? 0 : b.c

[Bug tree-optimization/97315] [11 Regression] ICE in choose_value, at gimple-ssa-evrp.c:282 since r11-3690-gebc77ce3a4c70730b4e38d68f88693eadbdc8712

2020-10-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97315 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment #1

[Bug ipa/97404] New: [9/10/11 Regression] aarch64: Wrong code since r9-3666-g74ca1c01d

2020-10-13 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: char a, b; long c; short d, e; long *f

[Bug rtl-optimization/97440] aarch64: Wrong code with -Os -fmodulo-sched -fno-dce -fno-strict-aliasing

2020-10-15 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97440 --- Comment #1 from Alex Coplan --- Created attachment 49377 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49377=edit broken assembly at r7-1513

[Bug rtl-optimization/97440] New: aarch64: Wrong code with -Os -fmodulo-sched -fno-dce -fno-strict-aliasing

2020-10-15 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Created attachment 49376 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49376=edit working assembly at r7-1

[Bug target/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-10-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 Alex Coplan changed: What|Removed |Added CC||dr.duncan.p.simpson at gmail dot c

[Bug rtl-optimization/97275] Linux kernel cgroup.c internal compiler error (ICE).

2020-10-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
||acoplan at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Alex Coplan --- Dup. *** This bug has been marked as a duplicate of bug 96998 ***

[Bug target/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-10-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 --- Comment #9 from Alex Coplan --- So the plan is to fix this with a patch to combine. Waiting on a review from Segher for https://gcc.gnu.org/pipermail/gcc-patches/2020-September/555158.html

[Bug target/97400] New: [10/11 Regression] SVE: wrong code since r10-3906-g96eb7d7a64

2020-10-13 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Created attachment 49364 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49364=edit assembly generated at r10-3906 AArch64

[Bug target/97400] [10/11 Regression] SVE: wrong code since r10-3906-g96eb7d7a64

2020-10-13 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97400 Alex Coplan changed: What|Removed |Added Target||aarch64 Target Milestone|---

[Bug target/97457] [10/11 Regression] SVE: wrong code since r10-4752-g2d56600c

2020-10-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97457 Alex Coplan changed: What|Removed |Added Known to fail||11.0 Keywords|

[Bug target/97457] New: [10/11 Regression] SVE: wrong code since r10-4752-g2d56600c

2020-10-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: int a; long c; signed char d(char e, char f) { return e + f; } int main(void

[Bug target/97457] [10/11 Regression] SVE: wrong code since r10-4752-g2d56600c

2020-10-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97457 --- Comment #1 from Alex Coplan --- To be clear, the second beq .L8 is in the body of the main loop is not taken either in the execution described here. The lack of a comment there might have suggested otherwise.

[Bug target/97457] [10/11 Regression] SVE: wrong code since r10-4752-g2d56600c

2020-10-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97457 --- Comment #2 from Alex Coplan --- For the similar testcase: long a; short b; signed char c(char d, char e) { return d + e; } int main(void) { a = -30; for (; a < 24; a = c(a, 5)) { short *f = (*f)--; } if (b != -11)

[Bug tree-optimization/97421] [10/11 Regression] aarch64: Wrong code with -O2 -fmodulo-sched since r10-1318-ga7e8a46

2020-10-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97421 Alex Coplan changed: What|Removed |Added Target||aarch64 Known to fail|

[Bug tree-optimization/97421] New: [10/11 Regression] aarch64: Wrong code with -O2 -fmodulo-sched since r10-1318-ga7e8a46

2020-10-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: int a, b, d, e; int *volatile c = __attribute__

[Bug rtl-optimization/97421] [10/11 Regression] aarch64: Wrong code with -O2 -fmodulo-sched since r10-1318-ga7e8a46

2020-10-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97421 --- Comment #3 from Alex Coplan --- > So maybe try bisecting/reproducing with -fno-strict-aliasing? Ah, yes, I can reproduce before that revision with -fno-strict-aliasing. I'll re-bisect, thanks.

[Bug tree-optimization/97079] [11 Regression] aarch64, SVE: ICE in SLP recognizer since r11-3148-g8d3767c30240c901a493d82d9d20f306b2f0152d

2020-10-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97079 --- Comment #4 from Alex Coplan --- Related testcase that gives a similar ICE: int c, d; int e[1]; void a(int *); void f(void) { while (d); int g[5]; for (; d < 2; d++) e[d] = c; for (; d; d++) g[d] = (long)e; a(g); } $

[Bug rtl-optimization/97421] aarch64: Wrong code with -O2 -fmodulo-sched

2020-10-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97421 Alex Coplan changed: What|Removed |Added Summary|[10/11 Regression] aarch64: |aarch64: Wrong code with

[Bug target/97251] New: [10/11 Regression] arm: ICEs compiling pure-code/no-literal-pool.c with integer MVE

2020-09-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Since r10-7193-g63c8f7d6a082b1cd0519fe06d4ed506b04280921, GCC ICEs compiling gcc/testsuite/gcc.target/arm/pure-code

[Bug target/97251] [10/11 Regression] arm: ICEs compiling pure-code/no-literal-pool.c with integer MVE

2020-09-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97251 --- Comment #2 from Alex Coplan --- Fixed on trunk. Needs backporting to GCC 10.

[Bug target/97252] New: [10/11 Regression] arm: ICE compiling pure-code/pr94538-2.c with MVE since r10-7293-g3eff57aa

2020-09-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Since r10-7293-g3eff57aacfef6e05f55e9dd6ecae3ef8568aaac4, AArch32 GCC ICEs compiling

[Bug target/97251] [10/11 Regression] arm: ICEs compiling pure-code/no-literal-pool.c with integer MVE

2020-09-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
||2020-09-30 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug target/97252] [10/11 Regression] arm: ICE compiling pure-code/pr94538-2.c with MVE since r10-7293-g3eff57aa

2020-09-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97252 Alex Coplan changed: What|Removed |Added Target Milestone|--- |10.3

[Bug target/97251] [10/11 Regression] arm: ICEs compiling pure-code/no-literal-pool.c with integer MVE

2020-09-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97251 Alex Coplan changed: What|Removed |Added Target Milestone|--- |10.3

[Bug target/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-10-22 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 Alex Coplan changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #10

[Bug rtl-optimization/97526] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-2903-g6b3034eaba83935d9f6dfb20d2efbdb34b5b00bf

2020-10-22 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97526 Alex Coplan changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug target/96998] GCC ICEs in on building AArch64 Linux kernel after basepoints/gcc-11-2903-g6b3034eaba83

2020-10-22 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96998 --- Comment #11 from Alex Coplan --- The patch series has been restructured to first fix the AArch64 bug, and then restore code quality with a patch to combine. The AArch64 patch

[Bug c/98621] New: ICE: x from g referenced in f

2021-01-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Here is an error-recovery ICE: $ cat test.c int f() { int g(x) int x; int a[x]; } $ aarch64-elf-gcc -c test.c test.c: In function 'g': test.c:4:1: error: expected declaration specifiers

[Bug rtl-optimization/98619] New: aarch64: ICE (verify_flow_info failed)

2021-01-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.c int a() { int *b; asm goto("" : "=mk"(b) : : : c); d: c: } $ aarch64-elf-gcc -c test.c test.c: In function 'a

[Bug rtl-optimization/97092] [10/11 Regression] aarch64, SVE: ICE in ira-color.c since r10-4752-g2d56600c

2021-01-12 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97092 Alex Coplan changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug analyzer/98580] New: ICE with -fanalyzer and LTO: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p

2021-01-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat a.c int a; int *p = void

[Bug target/98119] New: SVE: Wrong code with -O1 -ftree-vectorize -msve-vector-bits=512 -mtune=thunderx

2020-12-03 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: _Bool a[34]; int main() { for (long b = 0; b < 2; ++b) for (l

[Bug target/98119] [10/11 Regression] SVE: Wrong code with -O1 -ftree-vectorize -msve-vector-bits=512 -mtune=thunderx

2020-12-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98119 Alex Coplan changed: What|Removed |Added Summary|SVE: Wrong code with -O1|[10/11 Regression] SVE:

[Bug target/98177] New: [11 Regression] SVE: ICE in expand_direct_optab_fn, at internal-fn.c:3368

2020-12-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following C++ testcase: int a, b; short c; void d(long e) { for (int f = 0; f < b; f += 1) for (short g = 0

[Bug target/98177] [11 Regression] SVE: ICE in expand_direct_optab_fn, at internal-fn.c:3368

2020-12-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98177 Alex Coplan changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org

[Bug tree-optimization/98199] [11 Regression] ICE: Aborted (stack smashing detected)

2020-12-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98199 --- Comment #4 from Alex Coplan --- Ah, yeah, apologies: looks like I messed up the bisect here, scratch that.

[Bug tree-optimization/98196] New: [11 Regression] aarch64: Wrong code at -O3 -march=armv8.2-a+sve -msve-vector-bits=256

2020-12-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: static unsigned long long a; static long b; static

[Bug target/98196] [11 Regression] aarch64: Wrong code at -O3 -march=armv8.2-a+sve -msve-vector-bits=256 -fvect-cost-model=unlimited

2020-12-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98196 --- Comment #3 from Alex Coplan --- @Martin: I originally saw the issue with a testcase generated by YARPGen (https://github.com/intel/yarpgen), but this only hit the bug with LTO. I reduced that with cvise and then manually tweaked the

[Bug c/98199] New: [11 Regression] ICE: Aborted (stack smashing detected)

2020-12-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC ICEs on the following testcase: struct b { long a; short d; int c; int f; int e; int g; }; struct h { int a; int i; short j; struct b k

[Bug tree-optimization/97960] New: [8/9/10/11 Regression] Wrong code at -O3 since r8-6511-g3ae129323d

2020-11-23 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- GCC miscompiles the following C++ testcase at -O3 (reproduced on both x86 and aarch64): const int (const int , const int

[Bug tree-optimization/97960] [8/9/10/11 Regression] Wrong code at -O3 since r8-6511-g3ae129323d

2020-11-23 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97960 --- Comment #1 from Alex Coplan --- C testcase: const int *c(const int *p, const int *q) { if (*p < *q) return q; return p; } short a[575]; unsigned b[25]; unsigned char g; int main() { for (int e = 0; e < 23; ++e) a[e * 23] =

[Bug target/98214] [10/11 Regression] SVE: Wrong code with -O3 -msve-vector-bits=512

2020-12-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98214 Alex Coplan changed: What|Removed |Added Target Milestone|--- |10.3 Summary|SVE: Wrong code

[Bug target/98214] New: SVE: Wrong code with -O3 -msve-vector-bits=512

2020-12-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: long c; int a; int e[14]; short b[14]; void d(long *f, long h) { *f ^= h + *f; } int main() { e[2] = 1; for (int g = 0

[Bug rtl-optimization/98271] ICE in apply_scale, at profile-count.h:1082 with large --param=align-loop-iterations

2020-12-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98271 --- Comment #1 from Alex Coplan --- On further investigation, it seems we ICE when align-loop-iterations is 2^31 and above (i.e. if it's negative, treated as a 32-bit signed integer).

[Bug rtl-optimization/98271] New: ICE in apply_scale, at profile-count.h:1082 with large --param=align-loop-iterations

2020-12-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.c void a() { for (;;) ; } $ aarch64-elf-gcc -c -O --param=align

[Bug tree-optimization/98279] New: ICE in apply_scale with --param=hot-bb-frequency-fraction >= 2^31

2020-12-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
mal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.c int a() {} $ aarch64-elf-gcc test.c -c -O --param=hot-bb-frequency-fraction=2147483

[Bug rtl-optimization/98276] New: ICE in want_to_gcse_p, at gcse.c:808 with --param=gcse-cost-distance-ratio > 2^31

2020-12-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
MED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- $ cat test.c int a; int c(void); int b() { a && c(); } $ aarch64-elf-gcc -c -Os --param=gcse-co

[Bug rtl-optimization/97092] [10/11 Regression] aarch64, SVE: ICE in ira-color.c since r10-4752-g2d56600c

2020-12-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97092 --- Comment #9 from Alex Coplan --- Thanks for fixing this Andrea! FWIW I can reproduce the ICE with the same testcase and options on the head of the GCC 10 branch (contrary to my first message).

[Bug target/98302] [11 Regression] Wrong code on aarch64

2020-12-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98302 --- Comment #10 from Alex Coplan --- Reduced to: int c = 1705; char a; long f = 50887638; unsigned long long *h(unsigned long long *k, unsigned long long *l) { return *k ? k : l; } void aa() {} int main() { long d = f; for (char g = 0; g

[Bug target/97141] [10/11 Regression] aarch64, SVE: ICE in decompose, at rtl.h (during expand) since r10-4676-g9c437a108a

2020-12-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97141 --- Comment #2 from Alex Coplan --- Adding -fno-tree-forwprop gives us an ICE in LRA instead: $ aarch64-elf-gcc -c pr97141.c -O3 -march=armv8.2-a+sve -fno-tree-forwprop during RTL pass: reload pr97141.c: In function 'g': pr97141.c:8:1:

[Bug target/98248] New: [11 Regression] SVE: Wrong code with -O3 -msve-vector-bits=256

2020-12-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: unsigned long long b; _Bool a; unsigned char c[3][22]; unsigned char (*h)[22] = c; int j

[Bug target/98248] [11 Regression] SVE: Wrong code with -O3 -msve-vector-bits=256

2020-12-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98248 Alex Coplan changed: What|Removed |Added Target Milestone|--- |11.0 CC|

[Bug libstdc++/98370] libstdc++-v3/src/c++17/floating_to_chars.cc fails to compile unless `int32_t' is `int'

2020-12-18 Thread acoplan at gcc dot gnu.org via Gcc-bugs
|1 CC||acoplan at gcc dot gnu.org, ||ppalka at gcc dot gnu.org Last reconfirmed||2020-12-18 --- Comment #1 from Alex Coplan --- Confirmed. Presumably started with g

[Bug tree-optimization/97849] New: aarch64: ICE (segfault) during GIMPLE pass: ifcvt since r10-3543-gf30b3d28

2020-11-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC ICEs on the following testcase: int a, b, c, d; static int e(int f) { return a == 0 ? 0 : f

[Bug rtl-optimization/97850] New: [11 Regression] aarch64: ICE in expand_insn, at optabs.c:7467 since r11-1143-gb05d5563f

2020-11-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 ICEs on the following C++ testcase: unsigned long a, d; extern int b[]; char c; void e(int f

[Bug rtl-optimization/97850] [11 Regression] aarch64: ICE in expand_insn, at optabs.c:7467 since r11-1143-gb05d5563f

2020-11-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97850 Alex Coplan changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug tree-optimization/97849] [10/11 Regression] aarch64: ICE (segfault) during GIMPLE pass: ifcvt since r10-3543-gf30b3d28

2020-11-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97849 Alex Coplan changed: What|Removed |Added Known to fail||11.0 Keywords|

[Bug rtl-optimization/97851] New: aarch64: Wrong code with -Os -fmodulo-sched since r7-879-g43c0068e60

2020-11-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- AArch64 GCC miscompiles the following testcase: int a, b, c; short d; void e(void) { unsigned f = 0; for (; f <

  1   2   3   4   5   6   7   >