[Bug target/105927] ICE: RTL check: expected code 'reg', have 'mem' in rhs_regno, at rtl.h:1932 with -mtune=k6-3 -msse

2022-06-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105927 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug target/105927] ICE: RTL check: expected code 'reg', have 'mem' in rhs_regno, at rtl.h:1932 with -mtune=k6-3 -msse

2022-06-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105927 Uroš Bizjak changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/105778] Shift by register --- unnecessary AND instruction

2022-05-31 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105778 --- Comment #6 from Uroš Bizjak --- (In reply to Jakub Jelinek from comment #4) > It is the same thing done a few lines later in the preexisting code too. > Shall I all of those change to gen_lowpart (QImode, force_reg (GET_MODE >

[Bug target/105778] Shift by register --- unnecessary AND instruction

2022-05-31 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105778 --- Comment #3 from Uroš Bizjak --- Comment on attachment 53058 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53058 gcc13-pr105778.patch >+ operands[2] = gen_lowpart (QImode, operands[2]); We have learned that pre-reload splits

[Bug target/105624] [13 Regression] ICE in final_scan_insn_1, at final.cc:2861 (error: could not split insn)

2022-05-30 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105624 --- Comment #8 from Uroš Bizjak --- > I think it would work to keep the constraints for > const_int_operands that are in a % pair and drop them > elsewhere. (So a partial reapplication, rather than a > full reapplication.) OK, let's throw the

[Bug target/105624] [13 Regression] ICE in final_scan_insn_1, at final.cc:2861 (error: could not split insn)

2022-05-30 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105624 --- Comment #6 from Uroš Bizjak --- (In reply to rsand...@gcc.gnu.org from comment #5) > FWIW, I think the problem is specific to operands that are > commutative with a non-constant operand. For example, > suppose the pre-RA instruction had a

[Bug target/105624] [13 Regression] ICE in final_scan_insn_1, at final.cc:2861 (error: could not split insn)

2022-05-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105624 Uroš Bizjak changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/105624] [13 Regression] ICE in final_scan_insn_1, at final.cc:2861 (error: could not split insn)

2022-05-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105624 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com Ever

[Bug target/105624] [13 Regression] ICE in final_scan_insn_1, at final.cc:2861 (error: could not split insn)

2022-05-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105624 --- Comment #1 from Uroš Bizjak --- Ho-hum - this was my patch that removed constraint from const_int predicates. We are talking about: (define_insn_and_split "*anddi_1_btr" [(set (match_operand:DI 0 "nonimmediate_operand" "=rm")

[Bug target/105513] [9/10/11/12/13 Regression] Unnecessary SSE spill since r9-5748-g1d4b4f4979171ef0

2022-05-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105513 --- Comment #3 from Uroš Bizjak --- (In reply to Hongtao.liu from comment #2) > Just note #c4 in pr105504 also solve this issue. > > >Another possible solution is add a little bit dislike for "m" > >alternative(like ?m) to avoid potential

[Bug target/105073] [meta bug]Patch pending for GCC13.

2022-05-03 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105073 Bug 105073 depends on bug 105079, which changed state. Bug 105079 Summary: _mm_storeu_si16 inefficiently uses pextrw to an integer reg (without SSE4.1) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105079 What|Removed

[Bug target/105079] _mm_storeu_si16 inefficiently uses pextrw to an integer reg (without SSE4.1)

2022-05-03 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105079 Uroš Bizjak changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/105429] Unnecessary moves generated with _mm_crc32_u64

2022-04-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105429 --- Comment #1 from Uroš Bizjak --- The intrinsic is defined as: unsinged __int64 _mm_crc32_u64( unsinged __int64 crc, unsigned __int64 data ) and the unnecessary move is in fact zero-extend: movl%eax, %eax # 16[c=1 l=2]

[Bug target/105073] [meta bug]Patch pending for GCC13.

2022-04-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105073 Bug 105073 depends on bug 51954, which changed state. Bug 51954 Summary: __int128_t (and long long on x86) negation can be optimized https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51954 What|Removed |Added

[Bug target/51954] __int128_t (and long long on x86) negation can be optimized

2022-04-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51954 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/105209] internal compiler error: in store_data_bypass_p_1

2022-04-11 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105209 --- Comment #2 from Uroš Bizjak --- Created attachment 52780 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52780=edit Proposed patch This patch introduces alpha-specific version of store_data_bypass_p that ignores TRAP_IF that would

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

2022-04-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103035 Bug 103035 depends on bug 105139, which changed state. Bug 105139 Summary: [12 Regression] GCC produces vmovw instruction with an incorrect argument for -O3 -march=sapphirerapids since r12-6215-g708b87dcb6e48cb4

[Bug target/105139] [12 Regression] GCC produces vmovw instruction with an incorrect argument for -O3 -march=sapphirerapids since r12-6215-g708b87dcb6e48cb4

2022-04-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105139 Uroš Bizjak changed: What|Removed |Added CC|uros at gcc dot gnu.org| Assignee|unassigned at

[Bug target/105139] [12 Regression] GCC produces vmovw instruction with an incorrect argument for -O3 -march=sapphirerapids since r12-6215-g708b87dcb6e48cb4

2022-04-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105139 --- Comment #6 from Uroš Bizjak --- *movv2qi_internal was not fixed in the same way as *movhi_internal, so: diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md index 29d470bdef2..197f19e4b1a 100644 --- a/gcc/config/i386/mmx.md +++

[Bug target/105136] [11/12 regression] Missed optimization regression with 32-bit adds and shifts

2022-04-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105136 --- Comment #2 from Uroš Bizjak --- The regression in bar: is due to RA regression for: (insn 28 27 29 2 (parallel [ (set (reg:SI 89) (plus:SI (reg:SI 92) (subreg:SI (reg:DI 87) 0)))

[Bug target/105079] _mm_storeu_si16 inefficiently uses pextrw to an integer reg (without SSE4.1)

2022-03-28 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105079 --- Comment #1 from Uroš Bizjak --- Created attachment 52700 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52700=edit Proposed patch The attached patch handles the case from Comment #0.

[Bug target/105073] [meta bug]Patch pending for GCC13.

2022-03-28 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105073 Uroš Bizjak changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/104781] [12 regression] SEGV in _Unwind_GetGR during i386 Ada bootstrap

2022-03-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104781 --- Comment #3 from Uroš Bizjak --- Comment on attachment 52563 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52563 A patch >From ba4854c13c4aaa5b50127f23cb09cf05e3eb229d Mon Sep 17 00:00:00 2001 >From: "H.J. Lu" >Date: Fri, 4 Mar 2022

[Bug rtl-optimization/104664] [12 Regression] ICE: in extract_constrain_insn, at recog.cc:2670 (insn does not satisfy its constraints) with -Og -ffinite-math-only

2022-02-24 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104664 Uroš Bizjak changed: What|Removed |Added Keywords||ra Component|target

[Bug target/51954] __int128_t (and long long on x86) negation can be optimized

2022-02-20 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51954 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug target/51954] __int128_t (and long long on x86) negation can be optimized

2022-02-20 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51954 --- Comment #7 from Uroš Bizjak --- (In reply to Hongtao.liu from comment #5) > > > > Yes, neg rdx = (0 - rdx) = (0 - (rdx + CF)(last def)) = (sbb 0, rdx) > > And we need an extra register for it. The patch in Comment #6 does a conversion,

[Bug target/51954] __int128_t (and long long on x86) negation can be optimized

2022-02-20 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51954 --- Comment #6 from Uroš Bizjak --- Created attachment 52481 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52481=edit Proposed patch +;; Convert: +;; mov %esi, %edx +;; negl %eax +;; adcl $0, %edx +;; negl %edx +;; to: +;; xorl

[Bug tree-optimization/104582] Unoptimal code for __negdi2 (and others) from libgcc2

2022-02-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104582 --- Comment #2 from Uroš Bizjak --- Please note that gcc-10 does not vectorize the testcase even with -O3 -ftree-vectorize.

[Bug tree-optimization/104582] Unoptimal code for __negdi2 (and others) from libgcc2

2022-02-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104582 Uroš Bizjak changed: What|Removed |Added Component|target |tree-optimization --- Comment #1 from

[Bug target/104582] New: Unoptimal code for __negdi2 (and others) from libgcc2

2022-02-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104582 Bug ID: 104582 Summary: Unoptimal code for __negdi2 (and others) from libgcc2 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/104448] [10/11/12 Regression] ICE: in initialize, at function-abi.cc:108 with -mavx5124vnniw / -mavx5124fmaps -mno-xsave -mabi=ms

2022-02-16 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104448 --- Comment #3 from Uroš Bizjak --- (In reply to Jakub Jelinek from comment #2) > r12-7147-g2f9ab267e725ddf2b6b44113e4fc4fb8b2a6adfb fixed this. > So, shall we just add the testcase into the testsuite and be done with it? I think so.

[Bug middle-end/104522] ICE: in real_to_decimal_for_mode with -O -fdump-tree-all-details and long double

2022-02-14 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104522 --- Comment #5 from Uroš Bizjak --- (In reply to Richard Biener from comment #4) > But I do wonder whether real_from_target needs fixing to handle invalid > input gracefully which is ultimatively decode_ieee_extended? long double foo (void) {

[Bug target/79754] ICE in type_natural_mode with vector for DFP type

2022-02-13 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79754 Uroš Bizjak changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/103008] poor inlined builtin_fmod on x86_64

2022-02-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103008 --- Comment #14 from Uroš Bizjak --- Created attachment 52428 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52428=edit Proposed patch The attached patch implements: fmod (a, p) = a - trunc (a/p) * p drem (a, p) = a - roundeven (a/p) *

[Bug target/79754] ICE in type_natural_mode with vector for DFP type

2022-02-11 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79754 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug target/103008] poor inlined builtin_fmod on x86_64

2022-02-11 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103008 --- Comment #13 from Uroš Bizjak --- (In reply to Richard Biener from comment #12) > Just as data-point on znver2 Uros testcase shows > > rguenther@ryzen:/tmp> gcc-11 t.c -Ofast -lm -march=znver2 > rguenther@ryzen:/tmp> numactl --physcpubind=3

[Bug target/103008] poor inlined builtin_fmod on x86_64

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103008 --- Comment #10 from Uroš Bizjak --- FYI, the following testcase: --cut here-- #include float __attribute__((noinline)) _fmodf (float x, float y) { return x - truncf (x/y) * y; } int main () { float a, b; volatile float z; for (a

[Bug target/104469] ICE: in extract_insn, at recog.cc:2769 (unrecognizable insn) with -mavx and __builtin_convertvector()

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104469 Uroš Bizjak changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/104485] x387 fmod inline code is slow

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104485 Uroš Bizjak changed: What|Removed |Added Depends on||103008 --- Comment #2 from Uroš Bizjak

[Bug testsuite/104481] gcc.target/i386/pr35513-8.c and g++.target/i386/pr35513-[12].C testsuire failures

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104481 --- Comment #5 from Uroš Bizjak --- -save-temps needs to be added to dg-options to cure the UNRESOLVED part.

[Bug testsuite/104481] gcc.target/i386/pr35513-8.c and g++.target/i386/pr35513-[12].C testsuire failures

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104481 --- Comment #4 from Uroš Bizjak --- (In reply to Richard Biener from comment #3) > I'm also seeing those with GNU ld (GNU Binutils; SUSE Linux Enterprise 15) > 2.37.20211103-7.26 Here with: $ ld --version GNU ld version 2.35-18.fc33

[Bug testsuite/104481] gcc.target/i386/pr35513-8.c and g++.target/i386/pr35513-[12].C testsuire failures

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104481 --- Comment #2 from Uroš Bizjak --- spawn -ignore SIGHUP /hdd/uros/gcc-build-fast/gcc/xgcc -B/hdd/uros/gcc-build-fast/gcc/ -fdiagnostics-plain-output -mx32 -O2 -fno-pic -fexceptions -fasynchronous-unwind-tables -mno-direct-extern-access

[Bug testsuite/104481] gcc.target/i386/pr35513-8.c and g++.target/i386/pr35513-[12].C testsuire failures

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104481 Uroš Bizjak changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment

[Bug testsuite/104481] New: gcc.target/i386/pr35513-8.c and g++.target/i386/pr35513-[12].C testsuire failures

2022-02-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104481 Bug ID: 104481 Summary: gcc.target/i386/pr35513-8.c and g++.target/i386/pr35513-[12].C testsuire failures Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug target/104469] ICE: in extract_insn, at recog.cc:2769 (unrecognizable insn) with -mavx and __builtin_convertvector()

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104469 Uroš Bizjak changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/104458] [11/12 Regression] ICE: SIGSEGV in gen_udivmodhiqi3 -> copy_rtx with -O1 -m8bit-idiv

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104458 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|11.3

[Bug target/104462] ICE: in extract_constrain_insn_cached, at recog.cc:2682 with -mavx512fp16 -mno-xsave

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104462 Uroš Bizjak changed: What|Removed |Added Target Milestone|--- |11.4 Status|ASSIGNED

[Bug middle-end/104467] [12 Regression] ICE: in store_constructor, at expr.cc:7199 with -mxop

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104467 Uroš Bizjak changed: What|Removed |Added Component|target |middle-end --- Comment #2 from Uroš

[Bug target/104462] ICE: in extract_constrain_insn_cached, at recog.cc:2682 with -mavx512fp16 -mno-xsave

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104462 Uroš Bizjak changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/104445] [12 Regression] ICE in vect_create_partial_epilog, at tree-vect-loop.cc:5098

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104445 --- Comment #9 from Uroš Bizjak --- (In reply to rguent...@suse.de from comment #8) > > (In reply to Richard Biener from comment #6) > > > We are missing vec_extractv2sisi or vec_extractv8qiv4qi, with -mno-mmx > > > -mavx. > > > It seems we

[Bug target/104458] [11/12 Regression] ICE: SIGSEGV in gen_udivmodhiqi3 -> copy_rtx with -O1 -m8bit-idiv

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104458 Uroš Bizjak changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned

[Bug tree-optimization/104445] [12 Regression] ICE in vect_create_partial_epilog, at tree-vect-loop.cc:5098

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104445 --- Comment #7 from Uroš Bizjak --- (In reply to Richard Biener from comment #6) > We are missing vec_extractv2sisi or vec_extractv8qiv4qi, with -mno-mmx -mavx. > It seems we have addv2si3 available though. vec_extractv2sisi is available in

[Bug tree-optimization/104445] [12 Regression] ICE in vect_create_partial_epilog, at tree-vect-loop.cc:5098

2022-02-09 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104445 --- Comment #5 from Uroš Bizjak --- We do have: (define_expand "vec_extractv4qiqi" [(match_operand:QI 0 "register_operand") (match_operand:V4QI 1 "register_operand") (match_operand 2 "const_int_operand")] "TARGET_SSE4_1" {

[Bug target/104362] [12 Regression] ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3117-g6e5401e87d02919b

2022-02-03 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 Uroš Bizjak changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/104362] [12 Regression] ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3117-g6e5401e87d02919b

2022-02-03 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 --- Comment #4 from Uroš Bizjak --- Or simply: --cut here-- diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index ad5a5caa413..dd5584fb8ed 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -7400,7 +7400,8 @@

[Bug target/104362] [12 Regression] ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3117-g6e5401e87d02919b

2022-02-03 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 --- Comment #3 from Uroš Bizjak --- diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index ad5a5caa413..a61a5390127 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -7403,6 +7403,10 @@ find_drap_reg (void)

[Bug middle-end/104151] [9/10/11/12 Regression] x86: excessive code generated for 128-bit byteswap

2022-01-31 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104151 --- Comment #12 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #10) > (In reply to Hongtao.liu from comment #4) > > Also there's separate issue, codegen for below is not optimal > > gimple: > > _11 = VIEW_CONVERT_EXPR(a_3(D)) > >

[Bug rtl-optimization/104306] New: Use secondary_reload for optimized interunit reg-reg moves

2022-01-31 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104306 Bug ID: 104306 Summary: Use secondary_reload for optimized interunit reg-reg moves Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/104151] [9/10/11/12 Regression] x86: excessive code generated for 128-bit byteswap

2022-01-21 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104151 --- Comment #10 from Uroš Bizjak --- (In reply to Hongtao.liu from comment #4) > Also there's separate issue, codegen for below is not optimal > gimple: > _11 = VIEW_CONVERT_EXPR(a_3(D)) > asm: > mov QWORD PTR [rsp-24], rdi >

[Bug rtl-optimization/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57

2022-01-19 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104054 --- Comment #8 from Uroš Bizjak --- Without debug instructions, the compiler is able to rename insns to: 65: di:DI=si:DI 66: dx:DI=r11:DI 74: cx:QI=0x1 REG_EQUAL 0x1 41: L41: 42: NOTE_INSN_BASIC_BLOCK 6 43:

[Bug rtl-optimization/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57

2022-01-19 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104054 --- Comment #7 from Uroš Bizjak --- For some reason the pass does not detect usage of Register si in (insn 55): (debug_insn 55 54 56 6 (var_location:TI b (reg/v:TI 4 si [orig:86 b ] [86])) -1 (nil)) Register ax (1): Register dx (1):

[Bug rtl-optimization/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57

2022-01-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104054 --- Comment #5 from Uroš Bizjak --- Could be a red herring, but in _.rnreg dump: Register r9 (1): 75 [GENERAL_REGS] 18 [ALL_REGS] 97 [GENERAL_REGS] Register r10 (1): 76 [GENERAL_REGS] 18 [ALL_REGS] 23 [GENERAL_REGS] ... Register di (1): 55

[Bug rtl-optimization/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57

2022-01-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104054 Uroš Bizjak changed: What|Removed |Added Keywords|wrong-code | --- Comment #4 from Uroš Bizjak ---

[Bug rtl-optimization/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57

2022-01-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104054 --- Comment #3 from Uroš Bizjak --- The first difference is in rnreg pass, w/o -g: 28: L28: 29: NOTE_INSN_BASIC_BLOCK 4 30: [`i']=0 63: di:DI=r9:DI <--- here 64: dx:DI=r10:DI 9: r8:HI=0x5 REG_EQUAL 0x5 98:

[Bug target/104003] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-6488-g820ac79e8448ad6c

2022-01-13 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104003 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/104001] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-6538-g5f19303ada7db92c155332e7ba317233ca05946b

2022-01-13 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104001 --- Comment #4 from Uroš Bizjak --- (In reply to Hongtao.liu from comment #2) > I'm testing > > 1 file changed, 3 insertions(+), 3 deletions(-) > gcc/config/i386/i386.md | 6 +++--- > > modified gcc/config/i386/i386.md > @@ -10455,7 +10455,7

[Bug target/104003] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-6488-g820ac79e8448ad6c

2022-01-13 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104003 --- Comment #2 from Uroš Bizjak --- (define_insn "*xop_pcmov_" - [(set (match_operand:VI_32 0 "register_operand" "=x") -(if_then_else:VI_32 - (match_operand:VI_32 3 "register_operand" "x") - (match_operand:VI_32 1

[Bug target/104003] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-6488-g820ac79e8448ad6c

2022-01-13 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104003 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug testsuite/103935] [12 regression] g++.dg/vect/slp-pr98855.cc fails after r12-6273

2022-01-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103935 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug regression/103997] gcc.target/i386/pr88531-??.c scan-assembler-times FAILs

2022-01-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103997 Uroš Bizjak changed: What|Removed |Added Target||x86 Keywords|

[Bug regression/103997] New: gcc.target/i386/pr88531-??.c scan-assembler-times FAILs

2022-01-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103997 Bug ID: 103997 Summary: gcc.target/i386/pr88531-??.c scan-assembler-times FAILs Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/100637] [i386] Vectorize 4-byte vectors

2022-01-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100637 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/88670] [meta-bug] generic vector extension issues

2022-01-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88670 Bug 88670 depends on bug 103948, which changed state. Bug 103948 Summary: Vectorizer does not use vec_cmpMN without vcondMN pattern https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 What|Removed |Added

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2022-01-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 103948, which changed state. Bug 103948 Summary: Vectorizer does not use vec_cmpMN without vcondMN pattern https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 What|Removed |Added

[Bug tree-optimization/103948] Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 Uroš Bizjak changed: What|Removed |Added Target Milestone|--- |12.0 Status|UNCONFIRMED

[Bug tree-optimization/103948] Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 --- Comment #7 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #6) > I'll try your proposed patch from Comment #5 later today and report here. Yes, the patch works for me.

[Bug tree-optimization/103948] Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 --- Comment #6 from Uroš Bizjak --- (In reply to Richard Biener from comment #5) > I guess that tree-vect-generic.c is not up-to-date with gimple-isel.cc. We > should probably somehow factor out relevant pieces. > > Note vector lowering will

[Bug testsuite/103935] [12 regression] g++.dg/vect/slp-pr98855.cc fails after r12-6273

2022-01-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103935 --- Comment #3 from Uroš Bizjak --- (In reply to Richard Biener from comment #2) > no longer xfailed. I suggest to re-add the { xfail *-*-* } to the > profitability check. You mean xfail for non-x86 targets?

[Bug tree-optimization/103948] Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-08 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 --- Comment #4 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #3) > diff --git a/gcc/optabs-tree.c b/gcc/optabs-tree.c > index 78e388d82f6..871366f3b7e 100644 > --- a/gcc/optabs-tree.c > +++ b/gcc/optabs-tree.c > @@ -502,6 +502,9 @@

[Bug tree-optimization/103948] Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-08 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 --- Comment #3 from Uroš Bizjak --- diff --git a/gcc/optabs-tree.c b/gcc/optabs-tree.c index 78e388d82f6..871366f3b7e 100644 --- a/gcc/optabs-tree.c +++ b/gcc/optabs-tree.c @@ -502,6 +502,9 @@ expand_vec_cond_expr_p (tree value_type, tree

[Bug tree-optimization/103948] Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-08 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 --- Comment #2 from Uroš Bizjak --- Created attachment 52146 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52146=edit The complete testcase

[Bug tree-optimization/103948] Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-08 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 --- Comment #1 from Uroš Bizjak --- Created attachment 52145 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52145=edit Patch that illustrates the problem on x86 target This patch should vectorize all integer relational operations with

[Bug tree-optimization/103948] New: Vectorizer does not use vec_cmpMN without vcondMN pattern

2022-01-08 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948 Bug ID: 103948 Summary: Vectorizer does not use vec_cmpMN without vcondMN pattern Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/103941] New: uavgv2qi3_ceil is not used

2022-01-07 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103941 Bug ID: 103941 Summary: uavgv2qi3_ceil is not used Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug testsuite/103935] [12 regression] g++.dg/vect/slp-pr98855.cc fails after r12-6273

2022-01-06 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103935 --- Comment #1 from Uroš Bizjak --- As said in the patch submission: I have changed scan-tree-dump patterns in g++.dg/vect/slp-pr98855.cc to check that no SLP vectorization was performed. The existing scan-tree-dump-times was too fragile,

[Bug target/103928] [12 Regression] ICE in get_insn_template, at final.c:2050

2022-01-06 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103928 --- Comment #12 from Uroš Bizjak --- (In reply to Manuel Lauss from comment #10) > So it was either fixed in trunk in the last 20 hours, or pgo build broke > gcc, or "-mno-xop" fixed it. The fix for PR103905 was pushed to the master in the

[Bug target/103928] [12 Regression] ICE in get_insn_template, at final.c:2050

2022-01-06 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103928 --- Comment #11 from Uroš Bizjak --- (In reply to Martin Liška from comment #8) > > No, bdver4 does not include XOP. > > Ohh, didn't know that... Sorry, I was wrong: {"bdver4", PROCESSOR_BDVER4, CPU_BDVER4, PTA_64BIT | PTA_MMX |

[Bug target/103928] [12 Regression] ICE in get_insn_template, at final.c:2050

2022-01-06 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103928 --- Comment #7 from Uroš Bizjak --- (In reply to Martin Liška from comment #6) > Then you may be affected by PR103905 which is fixed on the current master. > Please pull to tip of master branch. No, bdver4 does not include XOP.

[Bug rtl-optimization/94440] [9 Regression] ICE in check_bool_attrs, at recog.c:2168 since r7-5324-gb8cab8a5492e9639

2022-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94440 --- Comment #21 from Uroš Bizjak --- Fixed?

[Bug target/103915] [12 Regression] ICE: SIGSEGV in memory_operand with -flive-range-shrinkage since r12-6215-g708b87dcb6e48cb4

2022-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103915 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute

2022-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92860 Bug 92860 depends on bug 103905, which changed state. Bug 103905 Summary: [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 What

[Bug target/103905] [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d

2022-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 Uroš Bizjak changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/103915] [12 Regression] ICE: SIGSEGV in memory_operand with -flive-range-shrinkage since r12-6215-g708b87dcb6e48cb4

2022-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103915 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/103905] [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d

2022-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 Uroš Bizjak changed: What|Removed |Added Attachment #52120|0 |1 is obsolete|

[Bug target/103905] [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d

2022-01-05 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 Uroš Bizjak changed: What|Removed |Added Attachment #52123|0 |1 is obsolete|

[Bug target/103905] [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 --- Comment #6 from Uroš Bizjak --- @Jakub: It looks the problem is in expand_vec_perm_pshufb, where permutation vector is recalculated for partial vectors: if (vmode == V4QImode || vmode == V8QImode) { rtx m128 = GEN_INT

[Bug target/103905] [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 --- Comment #4 from Uroš Bizjak --- Created attachment 52123 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52123=edit Patch that disables XOP permute with partial vectors Please try this patch.

[Bug target/103905] [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 --- Comment #3 from Uroš Bizjak --- (In reply to Martin Liška from comment #1) > Created attachment 52120 [details] > Isolated test-case > > Isolated test-case where only the miscompiled function > ix86_expand_vec_extract_even_odd uses -O3. >

[Bug target/103905] [12 Regression] Miscompiled i386-expand.c with -march=bdver1 and -O3 since r12-1789-g836328b2c99f5b8d

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103905 --- Comment #2 from Uroš Bizjak --- The referred patch adds: +;; Pack/unpack vector modes +(define_mode_attr mmxpackmode + [(V4HI "V8QI") (V2SI "V4HI")]) + +(define_expand "vec_pack_trunc_" + [(match_operand: 0 "register_operand") +

[Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb

2022-01-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103900 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

<    1   2   3   4   5   6   7   8   9   >