[Bug c++/69820] New: Test was miss compiled with -O3 option.

2016-02-14 Thread vsevolod.livinskij at frtk dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 37689 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37689=edit Reproducer. Test case produces incorrect result with -O3 option. Everything works f

[Bug c++/69820] Test was miss compiled with -O3 option.

2016-02-14 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69820 --- Comment #1 from Vsevolod Livinskiy --- Created attachment 37690 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37690=edit Preprocessed testcase.

[Bug tree-optimization/69820] [6 Regression] Test miscompiled with -O3 option

2016-02-15 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69820 --- Comment #4 from Vsevolod Livinskiy --- Test case also cause internal compiler error when it is compiled for knl. > g++ -march=knl -O3 repr.cpp repr.cpp: In function ‘void foo()’: repr.cpp:23:45: internal compiler error: in

[Bug c++/70021] New: Test miscompiled with -O3 option for -march=core-avx2.

2016-02-29 Thread vsevolod.livinskij at frtk dot ru
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 37826 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37826=edit Reproducer. Test case produces incorrect result with -O3 opt

[Bug c++/70222] New: Test miscompiled with -O1

2016-03-14 Thread vsevolod.livinskij at frtk dot ru
: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 37954 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37954=edit Reproducer. Test case produces incorrect result starting with -O1 optimization level. Test case fa

[Bug c++/70251] New: Wrong code with -O3 -march=skylake-avx512.

2016-03-16 Thread vsevolod.livinskij at frtk dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 37985 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37985=edit Reproducer. Test case produces incorrect result with -O3 -march=skylake-avx

[Bug c++/70252] New: ICE in vect_get_vec_def_for_stmt_copy with -O3 -march=skylake-avx512.

2016-03-16 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 37986 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37986=edit Reproducer. Testcase produces

[Bug target/70333] New: [5/6 Regression] Test miscompiled with -O0.

2016-03-21 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 38042 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38042=edit Reproducer. Test case produces incorrect result with -O0. It also fails with

[Bug target/70354] New: [6 Regression] Wrong code with -O3 -march=broadwell and -march=skylake-avx512.

2016-03-22 Thread vsevolod.livinskij at frtk dot ru
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 38055 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38055=edit Reproducer. Test c

[Bug c++/70026] New: [6 Regression] ICE in expand_expr_real_2 with -O1 -ftree-vectorize

2016-03-01 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 37830 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37830=edit Reproducer. Testcase produces

[Bug c++/70153] New: [6 Regression] ICE on valid C++ code

2016-03-09 Thread vsevolod.livinskij at frtk dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 37903 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37903=edit Reproducer. Testcase produces ICE with -O0. Everything works fine with gcc version 4.

[Bug target/70542] [6 Regression] Wrong code with -O3 -mavx2.

2016-04-05 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70542 Vsevolod Livinskiy changed: What|Removed |Added Attachment #38187|0 |1 is obsolete|

[Bug target/70542] New: [6 Regression] Wrong code with -O3 -mavx2.

2016-04-05 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 38187 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38187=edit Reproducer. Test case produces incorrect result with -O3 -mavx2 (and -march=

[Bug target/70429] New: Wrong code with -O1.

2016-03-28 Thread vsevolod.livinskij at frtk dot ru
: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 38111 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38111=edit Reproducer. Test case produces incorrect result with -O1 and all x86 arch. Everything works f

[Bug target/70450] New: [6 Regression] Wrong code with -O0 and -O1.

2016-03-30 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 38127 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38127=edit Reproducer. Test case produces incorrect result with -O0 and -O1 on all x86 a

[Bug target/70941] New: [5/6/7 Regression] Test miscompiled with -O2.

2016-05-04 Thread vsevolod.livinskij at frtk dot ru
: target Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 38409 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38409=edit Reproducer. Test case produces incorrect result with -O2 option. Output:

[Bug target/70733] Wrong code with nested structs and bit field.

2016-04-20 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70733 --- Comment #1 from Vsevolod Livinskiy --- (In reply to Vsevolod Livinskiy from comment #0) > Created attachment 38314 [details] > Reproducer. > > Test case produces incorrect result. > > Output: > > clang++ repr.cpp; ./a.out > -4 > > g++

[Bug target/70733] New: Wrong code with nested structs and bit field.

2016-04-20 Thread vsevolod.livinskij at frtk dot ru
: target Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 38314 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38314=edit Reproducer. Test case produces incorrect result. Output: > clang++ re

[Bug target/78132] New: GCC produces invalid instruction (kmovd and kmovq) for KNL.

2016-10-27 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 39909 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39909=edit Reproducer. GCC produces invalid instruct

[Bug sanitizer/80067] New: ICE in fold_comparison with -fsanitize=undefined

2017-03-16 Thread vsevolod.livinskij at frtk dot ru
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- Created

[Bug tree-optimization/80054] New: ICE in verify_ssa with -O3 -march=broadwell/skylake-avx512

2017-03-15 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 40978 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40978=edit Reproducer. ICE with -O3 -ma

[Bug tree-optimization/80072] New: ICE in gimple_build_assign_1 with -O3 -march=broadwell/skylake-avx512

2017-03-16 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 40988 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40988=edit Reproducer. GCC fa

[Bug c/80341] New: gcc miscompiles division of signed char

2017-04-06 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 41140 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41140=edit Reproducer. GCC generates incorrect code. Correct result is 90. Reproducer: >

[Bug middle-end/80362] New: gcc miscompiles arithmetic with signed char

2017-04-07 Thread vsevolod.livinskij at frtk dot ru
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 41156 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41156=edit Reproducer. GCC produces wrong code for a bunch of different architectu

[Bug tree-optimization/80620] New: gcc produces wrong code with -O3

2017-05-03 Thread vsevolod.livinskij at frtk dot ru
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 41311 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41311=edit Reproducer. gcc produces wrong code with -O3. It fails on multi

[Bug c++/80630] New: gcc fails to compile constexpr with -O0/-O1

2017-05-04 Thread vsevolod.livinskij at frtk dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 41318 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41318=edit Reproducer. gcc fails to compile constexpr at -O0 and -O2 with -std=c++11 and -

[Bug c++/80630] gcc fails to compile constexpr with -O0/-O1

2017-05-04 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80630 Vsevolod Livinskiy changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/82073] internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c

2017-09-05 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82073 --- Comment #2 from Vsevolod Livinskiy --- (In reply to Eric Gallager from comment #1) > Could you post the output of g++ -v so we have version and target info > please? Revision is 251589 >$ g++ -v Using built-in specs. COLLECT_GCC=g++

[Bug tree-optimization/82192] New: gcc produces incorrect code with -O2 and bit-field

2017-09-12 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- gcc produces incorrect code with -O2 and higher and unsigned int : 13 bit-field >$ g++ -O2 driver.cpp func.cpp ; ./a.out 6930 >$ g++ -O0 driv

[Bug tree-optimization/82192] gcc produces incorrect code with -O2 and bit-field

2017-09-12 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82192 --- Comment #4 from Vsevolod Livinskiy --- (In reply to jos...@codesourcery.com from comment #3) > On Tue, 12 Sep 2017, vsevolod.livinskij at frtk dot ru wrote: > > > struct struct_t { > > unsigned int memb : 13; >

[Bug tree-optimization/82192] gcc produces incorrect code with -O2 and bit-field

2017-09-12 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82192 --- Comment #2 from Vsevolod Livinskiy --- (In reply to Andrew Pinski from comment #1) > Does -fsantize=undefined show anything? > > I am suspecting you have undefined behavior with respect to the shift. Test doesn't contain undefined

[Bug tree-optimization/81987] New: ICE in verify_ssa with -O3 -march=skylake-avx512

2017-08-25 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- g++ -O3 -march=skylake-avx512 fails with ICE in verify_ssa with error: definition in block 11 does not dominate use in block 2 There are several trackers

[Bug tree-optimization/82073] New: internal compiler error: in pop_to_marker, at tree-ssa-scopedtables.c

2017-09-01 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Created attachment 42099 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42099=edit Reprodu

[Bug tree-optimization/91137] New: Wrong code with -O3

2019-07-10 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC produces wrong code with –O3. Reproducer: #include long long a; unsigned b; int c[70]; int d[70][70]; int e; void f(long long *g, int p2) { *g = p2; } void fn2

[Bug tree-optimization/91145] New: ICE: in vect_build_slp_tree_2, at tree-vect-slp.c:1143 with -march=skylake-avx512 -O3

2019-07-11 Thread vsevolod.livinskij at frtk dot ru
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC fails with ICE with -march=skylake-avx512 -O3 options. Reproducer: int a, c; unsigned b, e

[Bug tree-optimization/91293] New: Wrong code with -O3

2019-07-29 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC produces wrong code with -O3 option. Reproducer: #include long long a; unsigned b, c; int d = 62; void e(long long *f, int p2) { *f = p2; } int main() { for (int g = 2; g

[Bug tree-optimization/91178] [9 Regression] Infinite recursion in split_constant_offset in slp after r260289

2019-08-07 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91178 --- Comment #15 from Vsevolod Livinskiy --- I don't know if it is the same error or not, but the reproducer looks similar. It takes about 11 minutes before GCC fails. Reproducer: extern int a[][1240092]; int b; void c() { for (int d = 2; d <=

[Bug tree-optimization/91178] [9 Regression] Infinite recursion in split_constant_offset in slp after r260289

2019-08-08 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91178 --- Comment #17 from Vsevolod Livinskiy --- (In reply to Serge Belyshev from comment #16) > (In reply to Vsevolod Livinskiy from comment #15) > > I don't know if it is the same error or not, but the reproducer looks > > similar. > > This one is

[Bug tree-optimization/91403] New: GCC fails with ICE.

2019-08-08 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC fails with an internal compiler error. Sometimes the compilation takes about 12 minutes before it fails. Originally the bug was reported in r91178. Reproducer: extern int

[Bug tree-optimization/91204] New: ICE in expand_expr_real_2, at expr.c:9215 with -O3

2019-07-18 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC fails with ICE in expand_expr_real_2, at expr.c:9215. Reproducer: int a, b; extern int c[]; void d() { for (int e = 6; e <= a; e++)

[Bug tree-optimization/91207] New: Wrong code with -O3

2019-07-18 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC produces wrong code with -O3. Reproducer: #include long long a; int b[92][32]; unsigned int c, d; void e(long long *f, int p2) { *f = p2; } int main() { for (int i = 6; i

[Bug tree-optimization/91240] New: Wrong code with -O3

2019-07-23 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC produces wrong code with -O3. Reproducer: #include long long a; int b[96][76]; int c[81]; void d(long long *e, int p2) { *e ^= p2; } int main() { for (int f = 0; f <

[Bug tree-optimization/91178] New: GCC fails with internal compiler error.

2019-07-15 Thread vsevolod.livinskij at frtk dot ru
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC fails with an internal compiler error. Sometimes the compilation takes about 5 minutes before it fails. Everything works fine with -O2. Reproducer: int

[Bug tree-optimization/91178] [9 Regression] Infinite recursion in split_constant_offset in slp after r260289

2019-07-26 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91178 --- Comment #8 from Vsevolod Livinskiy --- It looks like the fix doesn't handle all of the cases. I still can see similar bugs on the trunk. Reproducer: int a[100][70304]; int b[100]; void c() { for (int d = 2; d < 4; d++) for (int e = 2;

[Bug tree-optimization/94727] New: GCC produces incorrect code with -O3

2020-04-22 Thread vsevolod.livinskij at frtk dot ru
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC produces incorrect code with -O3. Reproducer: >$ cat func.cpp extern bool var_3; extern unsigned long long int var_11; extern unsigned char arr_41 [14]

[Bug tree-optimization/95248] New: GCC produces incorrect code with -O3 for loops

2020-05-20 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC produces incorrect code with -O3 for loops Error: >$ gcc -O0 driver.cpp func.cpp && ./a.out 1 >$ gcc -O3 driver.cpp func.cpp &&

[Bug tree-optimization/95283] New: ICE: in hoist_memory_references, at tree-ssa-loop-im.c:2607

2020-05-22 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: short c; bool d; unsigned e, f; char g, h; extern bool i[]; void j() { for (char a = 0; a <

[Bug tree-optimization/95268] New: ICE: invalid ‘PHI’ argument

2020-05-22 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC fails with "invalid ‘PHI’ argument" Error: >$ g++ -O3 func.cpp -w func.cpp: In function ‘void test()’: func.cpp:10:6: error: invalid ‘PHI’ argument 1

[Bug tree-optimization/95284] New: ICE: verify_gimple failed

2020-05-22 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: #include short a; unsigned long long c; char d; unsigned e; void f() { for (;;) for (char b = 0; b < 19; b += 2) a = std::min((1 ? d : 0) ? e

[Bug tree-optimization/95295] New: g++ produces incorrect code with -O3 for loops

2020-05-23 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ func.cpp driver.cpp -O0 && ./a.out 1 >$ g++ func.cpp driver.cpp -O3 && ./a.out 0 Reproducer: func.cpp extern int var

[Bug tree-optimization/95297] New: ICE: Segmentation fault

2020-05-23 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >g++ -c func.c -O3 during GIMPLE pass: slp func.cpp: In function ‘void test()’: func.cpp:7:6: internal compiler error: Segmentation fault 7 | void t

[Bug tree-optimization/96693] New: GCC produces incorrect code with -O2 for loops

2020-08-18 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -O2 driver.cpp func.cpp && ./a.out 0 >$ g++ -O0 driver.cpp func.cpp && ./a.out 42 Reproducer: //func.cpp extern cha

[Bug rtl-optimization/96755] New: ICE in final_scan_insn_1, at final.c:3073 with -O3 -march=skylake-avx512

2020-08-23 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- >$ g++ -O3 -march=skylake-avx512 -c func.cpp func.cpp: In function ‘void test(short unsigned int, unsig

[Bug tree-optimization/95308] New: ICE: in maybe_canonicalize_mem_ref_addr with -O3 -march=skylake-avx512

2020-05-24 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -O3 -march=skylake-avx512 -c func.cpp during GIMPLE pass: forwprop func.cpp: In function ‘voi

[Bug tree-optimization/95308] ICE: in maybe_canonicalize_mem_ref_addr with -O3 -march=skylake-avx512

2020-05-24 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95308 --- Comment #1 from Vsevolod Livinskiy --- bug 94216 might be related to this one

[Bug tree-optimization/95396] New: GCC produces incorrect code with -O3 for loops

2020-05-28 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -O0 small.cpp && ./a.out 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 0 0 0 >$ g++ -O3 small.cpp && ./a.out 0

[Bug tree-optimization/95401] New: GCC produces incorrect instruction with -O3 for skylake-avx512

2020-05-28 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- GCC produces incorrect instruction with -O3 for skylake-avx512 (also for icelake-server and tigerlake). Error: >

[Bug tree-optimization/95295] g++ produces incorrect code with -O3 for loops

2020-05-26 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95295 --- Comment #6 from Vsevolod Livinskiy --- Thank you for such a quick fix! Sorry about duplicates, I saw different assert messages and thought that they were different bugs. I still can see ICE in hoist_memory_references (bug 95283) on trunk.

[Bug tree-optimization/95281] New: ICE: in compute_live_loop_exits, at tree-ssa-loop-manip.c:247

2020-05-22 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$g++ -O3 -c func.cpp during GIMPLE pass: lim func.cpp: In function ‘void c(bool, unsigned int*)’: func.cpp:

[Bug tree-optimization/96415] New: GCC produces incorrect code for loops with -O3 for skylake-avx512 and icelake-server

2020-08-01 Thread vsevolod.livinskij at frtk dot ru
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -O0 driver.cpp func.cpp && ./a.out 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0

[Bug target/96415] GCC produces incorrect code for loops with -O3 for skylake-avx512 and icelake-server

2020-08-03 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96415 Vsevolod Livinskiy changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/96022] New: ICE during GIMPLE pass: slp in operator[], at vec.h:867

2020-07-01 Thread vsevolod.livinskij at frtk dot ru
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- >$ g++ -c -O3 func.cpp during GIMPLE pass: slp func.cpp: In function ‘void test(short int, bool, int)’: func.cpp:3:6: inter

[Bug tree-optimization/95717] ICE during GIMPLE pass: vect: verify_ssa failed

2020-06-17 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95717 --- Comment #1 from Vsevolod Livinskiy --- It might be related to bug 94443

[Bug tree-optimization/95717] New: ICE during GIMPLE pass: vect: verify_ssa failed

2020-06-17 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: $ g++ -c -O3 func.cpp func.cpp: In function ‘void g(bool)’: func.cpp:5:6: error: definition in block 61 does not dominate use in block 59 5

[Bug tree-optimization/95916] ICE during GIMPLE pass: slp : verify_ssa failed

2020-06-26 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95916 --- Comment #1 from Vsevolod Livinskiy --- This bug might be related to bug 95761

[Bug tree-optimization/95916] New: ICE during GIMPLE pass: slp : verify_ssa failed

2020-06-26 Thread vsevolod.livinskij at frtk dot ru
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -c -O3 func.cpp func.cpp: In function ‘void test()’: func.cpp:5:6: error: definition in block 3 follows the use 5 | void t

[Bug tree-optimization/95649] New: ICE during GIMPLE pass: cunroll

2020-06-11 Thread vsevolod.livinskij at frtk dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -O2 -c func.cpp during GIMPLE pass: cunroll func.cpp: In function ‘void test()’: func.cpp:4:6: internal compiler error: Segmentation fault 4 | void t

[Bug tree-optimization/95487] New: ICE: verify_gimple failed (error: invalid vector types in nop conversion) with -O3 -march=skylake-avx512

2020-06-02 Thread vsevolod.livinskij at frtk dot ru
: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -O3 -march=skylake-avx512 -c func.cpp func.cpp: In funct

[Bug tree-optimization/98069] New: Miscompilation with -O3

2020-11-30 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: //func.cpp extern long long var_3; extern short var_8; extern int var_17; extern short arr_165[]; long c(long e, long f) { return f ? e : f; } void test

[Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3

2020-11-29 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Error: >$ g++ -c -O3 func.cpp during GIMPLE pass: slp func.cpp: In function ‘void test()’: func.cpp:

[Bug tree-optimization/98048] New: ICE in build_vector_from_val, at tree.c:1985

2020-11-28 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: extern short var_0; extern int var_3; extern int arr_277[]; int a(int b, int c) { return b < c ? b : c; } int e; void test() { e = va

[Bug tree-optimization/98381] New: Wrong code with -O3 -march=skylake-avx512

2020-12-18 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: //func.cpp extern bool var_22; void test(long long a, unsigned b, unsigned long long c) { for (long i = 0; i < 16; i += 1

[Bug tree-optimization/98308] New: ICe in in vect_slp_analyze_node_operations, at tree-vect-slp.c:3764 with -O3 -march=skylake-avx512

2020-12-15 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: extern unsigned long long int arr_86[]; extern unsigned long long int

[Bug tree-optimization/98694] New: GCC produces incorrect code for loops with -O3 for skylake-avx512 and icelake-server

2021-01-14 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- The reproducer is a bit big, but I was not able to reduce it further. Reproducer: // func.cpp

[Bug tree-optimization/98640] New: GCC produces incorrect code with -O1 and higher

2021-01-12 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: #include unsigned long long int var_0 = 18128133247277979402ULL; long long int var_14 = 6557021550272328915LL; unsigned long long int var_83

[Bug tree-optimization/99777] New: ICE in build2, at tree.c:4869 with -O3

2021-03-25 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- The error is not specific to skylake-avx512, I have a reproducer that shows it. Reproducer: #include extern int var_142; extern int a, c; long h; unsigned long

[Bug tree-optimization/102696] New: ICE in vect_build_slp_tree, at tree-vect-slp.c:1551 for skylake-avx512 and icelake-server

2021-10-11 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Link to the Compiler Explorer: https://godbolt.org/z/WhYP35KKT Reproducer: int a; extern

[Bug tree-optimization/102788] New: Wrong code with -O3

2021-10-15 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Link to the Compiler Explorer: https://godbolt.org/z/78ab77Env Reproducer: #include unsigned long long int var_4 = 235; unsigned long long int var_5 = 74; signed char var_12

[Bug tree-optimization/102572] New: ICE for skx in vect_build_gather_load_calls, at tree-vect-stmts.c:2835

2021-10-02 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: int a, b, c, f; void g(bool h, int d[][5]) { for (short i = f; i; i += 1) { a = h &&

[Bug tree-optimization/102622] New: Wrong code with -O3 for skylake-avx512 and icelake-server

2021-10-05 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: // func.cpp #include extern int var_20, var_22; extern short arr_32[]; extern char arr_45[]; void test(int

[Bug tree-optimization/102511] New: GCC produces incorrect code for -O3: first element of the array is skipped

2021-09-27 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer: //func.cpp extern char arr_15[]; void test(signed char a, unsigned short b, unsigned long

[Bug tree-optimization/102920] New: [12 Regression] Wrong code with -O3

2021-10-24 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- https://godbolt.org/z/qn3dsxsW8 Reproducer: #include unsigned short a = 42; unsigned short b = 1; long long int c = 1; unsigned char var_120; unsigned char

[Bug tree-optimization/103517] New: ICE in as_a, at is-a.h:242 with -O2 -march=skylake-avx512

2021-12-01 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- The same error exists for Sapphire Rapids Reproducer: int a; short b, c; extern short d[]; void e() { for (short f = 1

[Bug tree-optimization/103800] New: ICE in vectorizable_phi, at tree-vect-loop.c:7861 with -O3 -march=skylake-avx512

2021-12-22 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Link to the Compiler Explorer: https://godbolt.org/z/bWdof9c8s Reproducer: int a; long b; extern

[Bug tree-optimization/103399] New: [12 Regression] Wrong code with -O2

2021-11-23 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Link to the Compiler Explorer: https://godbolt.org/z/3GE6fKvYr Reproducer: #include char a = 0; long long b[8][10][18]; void e(int, long long[][10][18

[Bug tree-optimization/103321] [12 regression] ICE at tree-ssa.c:1211 after r12-5300

2021-11-18 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103321 Vsevolod Livinskiy changed: What|Removed |Added CC||vsevolod.livinskij at frtk dot ru

[Bug tree-optimization/103361] New: ICE in adjust_unroll_factor, at gimple-loop-jam.c:407

2021-11-22 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Link to the Compiler Explorer: https://godbolt.org/z/jbKEn7Tdq Reproducer: char a, b; extern unsigned short c[]; extern bool d[]; const unsigned

[Bug tree-optimization/103035] New: [meta-bug] YARPGen bugs

2021-11-01 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- This is a meta-bug that is supposed to keep track of bugs that were found with YARPGen (https://github.com/intel/yarpgen). YARPGen is a random program generator, which

[Bug tree-optimization/103037] New: [11/12 Regression] Wrong code with -O2

2021-11-02 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Link to the Compiler Explorer: https://godbolt.org/z/eaGzsPnax Reproducer: #include short var_3 = 2; unsigned char var_9 = 23; unsigned short var_11; unsigned

[Bug tree-optimization/95916] [11 Regression] ICE during GIMPLE pass: slp : verify_ssa failed

2021-11-01 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95916 Richard Biener changed: What|Removed |Added CC||dcb314 at hotmail dot com Vsevolod

[Bug ipa/103073] [12 Regression] ICE in insert_access, at ipa-modref-tree.h:578 since r12-4401-gfecd145359fc981b

2021-11-04 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103073 --- Comment #4 from Vsevolod Livinskiy --- (In reply to Martin Liška from comment #2) > Started with r12-4401-gfecd145359fc981b. > > @Vsevolod: Is it a yarpgen test-case? Yes. I've added stencil support recently, but it was a surprise to

[Bug ipa/103073] New: [12 Regression] ICE in insert_access, at ipa-modref-tree.h:578

2021-11-03 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru CC: marxin at gcc dot gnu.org Target Milestone: --- I'm not sure about the component. Would you mind checking and fixing it in case

[Bug tree-optimization/103122] New: [12 Regression] ICE in fill_block_cache, at gimple-range-cache.cc:1277 with -O2

2021-11-07 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Link to the Compiler Explorer: https://godbolt.org/z/GWbbq3sKK Reproducer: unsigned a; int b; short

[Bug tree-optimization/103119] New: ICE in get_imports, at gimple-range-gori.cc:230

2021-11-07 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- The bug is not reproducible on the trunk anymore (the reduction process took forever). I don't know if it was fixed or became latent. Feel free to close

[Bug tree-optimization/103489] New: ICE with -O3 in operator[], at vec.h:889

2021-11-30 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- The same reproducer also triggers ICE for Sapphire Rapids with a different stack trace. Link to the Compiler Explorer: https://godbolt.org/z/nxqPhnnoe

[Bug tree-optimization/104551] New: Wrong code with -O3 for skylake-avx512, icelake-server, and sapphirerapids

2022-02-15 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vsevolod.livinskij at frtk dot ru Target Milestone: --- Reproducer (I was not able to merge it into a single file): // func.cpp extern unsigned var_11, var_178