[Bug other/120494] get_call_fndecl requires REG_CALL_DECL note

2025-05-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120494 H.J. Lu changed: What|Removed |Added Last reconfirmed||2025-05-30 Status|UNCONFIRMED

[Bug other/120493] New: 2 different functions to get call RTX from CALL_INSN

2025-05-30 Thread hjl.tools at gmail dot com via Gcc-bugs
Component: other Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- There are /* Return the CALL in X if there is one. */ rtx get_call_rtx_from (const rtx_insn *insn) { rtx x = PATTERN (insn); if (GET_CODE (x) == PARALLEL

[Bug other/120494] New: get_call_fndecl requires REG_CALL_DECL note

2025-05-30 Thread hjl.tools at gmail dot com via Gcc-bugs
: other Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- /* Get the declaration of the function called by INSN. */ tree get_call_fndecl (const rtx_insn *insn) { rtx note, datum; note = find_reg_note (insn, REG_CALL_DECL

[Bug target/120427] [12/13/14/15/16 Regression] "and $0,mem" is generated without -Oz since r12-6106-gef26c151c14a87

2025-05-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120427 --- Comment #2 from H.J. Lu --- Another issue with the commit: +;; With -Oz, transform mov $imm,reg to the shorter push $imm; pop reg. +(define_peephole2 + [(set (match_operand:SWI248 0 "general_reg_operand") + (match_operand:SWI248 1 "const_

[Bug target/120429] New: pcmpeqd isn't used for all 1s in *movv2si_internal

2025-05-24 Thread hjl.tools at gmail dot com via Gcc-bugs
y: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org, ubizjak at gmail dot com Target Milestone: --- [hjl@gnu-zen4-1 pr117839]$ cat dl-3.c struct __pthread_mutex_s { int __lock; unsigne

[Bug tree-optimization/120426] XMM store isn't used

2025-05-24 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120426 --- Comment #3 from H.J. Lu --- (In reply to Andrew Pinski from comment #2) > With -mtune=sapphirerapids we get: > >[local count: 1073741824]: > MEM [(union *)lock_2(D)] = 0; > MEM [(union *)lock_2(D) + 8B] = 0; > MEM [(union *)

[Bug target/120427] [12/13/14/15/16 Regression] "and $0,mem" is generated without -Oz

2025-05-24 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120427 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/120427] New: [12/13/14/15/16 Regression] "and $0, mem" is generated without -Oz

2025-05-24 Thread hjl.tools at gmail dot com via Gcc-bugs
ty: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org, roger at nextmovesoftware dot com, ubizjak at gmail dot com Target

[Bug target/120426] New: XMM store isn't used

2025-05-24 Thread hjl.tools at gmail dot com via Gcc-bugs
ignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 [hjl@gnu-zen4-1 pr117839]$ cat dl-1.c struct __pthread_mutex_s { int __lock; unsigned int __count; int __

[Bug bootstrap/110180] On Fedora 38, egrep is now obsolescent

2025-05-23 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110180 H.J. Lu changed: What|Removed |Added Target Milestone|--- |16.0 Version|unknown

[Bug bootstrap/110180] On Fedora 38, egrep is now obsolescent

2025-05-23 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110180 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug other/120419] New: grep: warning: egrep is obsolescent; using grep -E

2025-05-23 Thread hjl.tools at gmail dot com via Gcc-bugs
Component: other Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- When building GCC on Fedora 42, I got many grep: warning: egrep is obsolescent; using grep -E

[Bug c++/120409] New: FAIL: g++.dg/coroutines/torture/pr119916.C

2025-05-22 Thread hjl.tools at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: x32 I got FAIL: g++.dg/coroutines/torture/pr119916.C -O0 execution test FAIL: g++.dg/coroutines/torture/pr119916.C -O1 execution test FAIL: g++.dg

[Bug middle-end/120252] -fpatchable-function-entry doesn't work with -ffunction-sections

2025-05-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120252 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/120252] -fpatchable-function-entry doesn't work with -ffunction-sections

2025-05-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120252 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug middle-end/120252] -fpatchable-function-entry doesn't work with -ffunction-sections

2025-05-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120252 --- Comment #1 from H.J. Lu --- Created attachment 61415 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61415&action=edit A patch

[Bug middle-end/120252] New: -fpatchable-function-entry doesn't work with -ffunction-sections

2025-05-13 Thread hjl.tools at gmail dot com via Gcc-bugs
ormal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- -fpatchable-function-entry doesn't work with -ffunction-sections since a single __patchable_function_entries section i

[Bug target/120234] New: [16 Regression] FAIL: gcc.target/i386/pr111023-2.c

2025-05-12 Thread hjl.tools at gmail dot com via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: hubicka at ucw dot cz, liuhongt at gcc dot gnu.org, ubizjak at gmail dot com Target Milestone: --- Target: x86-64 On x86-64, I got FAIL

[Bug target/120233] New: [16 Regression] FAIL: gcc.target/i386/pr108938-3.c scan-assembler-times bswap[\t ]+ 3

2025-05-12 Thread hjl.tools at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: hubicka at ucw dot cz, liuhongt at gcc dot gnu.org, ubizjak at gmail dot com Target Milestone

[Bug target/120228] New: Need to call df_insn_rescan after emit_insn

2025-05-11 Thread hjl.tools at gmail dot com via Gcc-bugs
: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 i386 backend has codes like set_insn = emit_insn_before (set, insn

[Bug target/120217] FAIL: std/ranges/adaptors/p2770r0.cc -std=gnu++26 (test for excess errors)

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120217 H.J. Lu changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug target/120217] FAIL: std/ranges/adaptors/p2770r0.cc -std=gnu++26 (test for excess errors)

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120217 --- Comment #1 from H.J. Lu --- Never mind. It was caused by my local changes.

[Bug middle-end/120217] New: FAIL: std/ranges/adaptors/p2770r0.cc -std=gnu++26 (test for excess errors)

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: x86-64 On x86-64, r16-520-ga3f5aac402a7ef gave spawn -ignore SIGHUP /export/build/gnu/tools-build

[Bug target/120215] New: [16 Regression] FAIL: gcc.target/i386/pr78794.c scan-assembler pandn

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: x86-64 On x86-64, r16-517-g993aa0bd28722c gave: FAIL: gcc.target/i386/pr78794.c scan-assembler pandn

[Bug rtl-optimization/92080] Missed CSE of _mm512_set1_epi8(c) with _mm256_set1_epi8(c)

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92080 H.J. Lu changed: What|Removed |Added Attachment #61392|0 |1 is obsolete|

[Bug debug/120207] print_rtl_single_with_indent is undefined

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120207 H.J. Lu changed: What|Removed |Added Ever confirmed|1 |0 Component|middle-end

[Bug rtl-optimization/92080] Missed CSE of _mm512_set1_epi8(c) with _mm256_set1_epi8(c)

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92080 H.J. Lu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com

[Bug rtl-optimization/92080] Missed CSE of _mm512_set1_epi8(c) with _mm256_set1_epi8(c)

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92080 H.J. Lu changed: What|Removed |Added Target Milestone|--- |16.0

[Bug debug/120207] New: [12/13/14/15/16 Regression] print_rtl_single_with_indent is undefined

2025-05-10 Thread hjl.tools at gmail dot com via Gcc-bugs
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- rtl.h has extern void print_rtl_single_with_indent (FILE *, const_rtx, int); But it isn't defined. It looks like an over

[Bug sanitizer/120201] generates a misaligned vector operation for std::memcpy with -march=znver4

2025-05-09 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120201 H.J. Lu changed: What|Removed |Added Component|target |sanitizer CC|

[Bug libgomp/120167] [16 Regression] FAIL: libgomp.graphite/force-parallel-1.c by r16-372-g064cac730f88dc

2025-05-07 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120167 H.J. Lu changed: What|Removed |Added Summary|[16 Regression] FAIL: |[16 Regression] FAIL: |libg

[Bug libgomp/120167] New: [16 Regression] FAIL: libgomp.graphite/force-parallel-1.c

2025-05-07 Thread hjl.tools at gmail dot com via Gcc-bugs
Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: jakub at gcc dot gnu.org Target Milestone: --- On x86-64, I got FAIL: libgomp.graphite/force-parallel-1.c scan-tree-dump-times graphite &q

[Bug target/120036] [16 Regression] ICE on highway-1.2.0: during RTL pass: rrvl: in gen_rtx_SUBREG, at emit-rtl.cc:1032 since r16-271-gd1cada7481420a

2025-05-07 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120036 H.J. Lu changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #8 from H.J. Lu --- Plea

[Bug c++/120092] New: [16 Regression] FAIL: g++.dg/coroutines/torture/pr103953.C -O3 -g execution test

2025-05-04 Thread hjl.tools at gmail dot com via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- On x86-64, I got FAIL: g++.dg/coroutines/torture

[Bug middle-end/120094] New: [16 Regression] FAIL: gcc.dg/vla-1.c scan-tree-dump-times optimized " s=> i" 2

2025-05-04 Thread hjl.tools at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- On x86-64, I got FAIL: gcc.dg/vla-1.c scan-tr

[Bug middle-end/120093] New: [16 Regression] FAIL: gcc.dg/vect/pr101145.c

2025-05-04 Thread hjl.tools at gmail dot com via Gcc-bugs
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- On x86-64, I got FAIL: gcc.dg/vect/pr101145.c scan-tree-dump-times vect "vectorized 1 loops" 7 FAIL: g

[Bug target/120091] New: FAIL: gcc.target/i386/pr119919.c

2025-05-04 Thread hjl.tools at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: i386 On x86-64, -m32 gave FAIL: gcc.target/i386/pr119919.c scan-tree-dump vect "loop vectorized using 8 byte vectors"

[Bug target/120090] New: [16 Regression] gcc.target/i386/avx512bw-pr103750-2.c

2025-05-04 Thread hjl.tools at gmail dot com via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: i386 On x86-64, -m32 gave: FAIL: gcc.target/i386/avx512bw-pr103750-2.c scan-assembler-not kmov

[Bug target/120036] [16 Regression] ICE on highway-1.2.0: during RTL pass: rrvl: in gen_rtx_SUBREG, at emit-rtl.cc:1032 since r16-271-gd1cada7481420a

2025-04-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120036 H.J. Lu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com

[Bug target/119985] TARGET_PROMOTE_FUNCTION_RETURN is still referenced in target.def

2025-04-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119985 H.J. Lu changed: What|Removed |Added Target Milestone|--- |16.0 Resolution|---

[Bug target/117547] FAIL: gcc.target/i386/*-pr93673.c without TARGET_PROMOTE_PROTOTYPES

2025-04-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117547 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug target/117839] Redundant vector XOR instructions

2025-04-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117839 H.J. Lu changed: What|Removed |Added Target Milestone|--- |16.0 Status|NEW

[Bug target/117547] FAIL: gcc.target/i386/*-pr93673.c without TARGET_PROMOTE_PROTOTYPES

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117547 --- Comment #6 from H.J. Lu --- We have [hjl@gnu-tgl-3 pr117547]$ cat x.c #include __mmask64 foo (__mmask64 d) { d = __builtin_ia32_kshiftridi (d, 0xff); return d; } [hjl@gnu-tgl-3 pr117547]$ make /export/build/gnu/tools-build/gcc-gitlab-

[Bug target/119979] [16 Regression] Recent promote_prototypes change breaks multiple ports

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119979 --- Comment #6 from H.J. Lu --- We need to make sure that incoming argument isn't promoted by TARGET_PROMOTE_FUNCTION_MODE.

[Bug target/119979] [16 Regression] Recent promote_prototypes change breaks multiple ports

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119979 --- Comment #5 from H.J. Lu --- (In reply to Jeffrey A. Law from comment #3) > sh4eb is showing similar failures Is this the same issue: static machine_mode sh_promote_function_mode (const_tree type, machine_mode mode,

[Bug target/119979] [16 Regression] Recent promote_prototypes change breaks multiple ports

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119979 H.J. Lu changed: What|Removed |Added Last reconfirmed||2025-04-28 Ever confirmed|0

[Bug target/119979] [16 Regression] Recent promote_prototypes change breaks multiple ports

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119979 --- Comment #4 from H.J. Lu --- Created attachment 61231 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61231&action=edit A patch Please try this. I suspect that all targets using default_promote_function_mode_always_promote are broken.

[Bug target/119985] New: TARGET_PROMOTE_FUNCTION_RETURN is still referenced in target.def

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- target.def has If @code{TARGET_PROMOTE_FUNCTION_RETURN} returns true, you must apply\n\ the same promotion rules specified in @code

[Bug middle-end/119982] [16 Regression] FAIL: gcc.target/i386/pr109362.c scan-assembler \tmovq\t8\\(%rdi\\), %r by r16-190-g6901d56fea2132

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119982 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug middle-end/119982] New: [16 Regression] FAIL: gcc.target/i386/pr109362.c scan-assembler \tmovq\t8\\(%rdi\\), %r by r16-190-g6901d56fea2132

2025-04-28 Thread hjl.tools at gmail dot com via Gcc-bugs
: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: rguenther at suse dot de Target Milestone: --- On x86-64, r16

[Bug target/117863] Missing pcmpeq splitters

2025-04-20 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117863 H.J. Lu changed: What|Removed |Added Target Milestone|--- |15.0 Status|UNCONFIRMED

[Bug target/119784] -mapxf saves registers beyond red zone

2025-04-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119784 H.J. Lu changed: What|Removed |Added Target Milestone|--- |14.3 Resolution|---

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls (inc. preserve_none for x86_64?)

2025-04-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #13 from H.J. Lu --- (In reply to Ken Jin from comment #9) > I tried this out with CPython's interpreter that uses tail calls with the > patch at > https://gitlab.com/x86-gcc/gcc/-/tree/users/hjl/saved/master?ref_type=heads > applied

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls (inc. preserve_none for x86_64?)

2025-04-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 H.J. Lu changed: What|Removed |Added Attachment #61120|0 |1 is obsolete|

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls (inc. preserve_none for x86_64?)

2025-04-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #11 from H.J. Lu --- (In reply to Ken Jin from comment #9) > I tried this out with CPython's interpreter that uses tail calls with the > patch at > https://gitlab.com/x86-gcc/gcc/-/tree/users/hjl/saved/master?ref_type=heads > applied

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #8 from H.J. Lu --- Created attachment 61120 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61120&action=edit A tested patch

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 H.J. Lu changed: What|Removed |Added Attachment #61093|0 |1 is obsolete|

[Bug target/119784] -mapxf saves registers beyond red zone

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119784 --- Comment #1 from H.J. Lu --- Created attachment 61098 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61098&action=edit A patch I am testing this.

[Bug target/119784] New: -mapxf saves registers beyond red zone

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 [hjl@gnu-tgl-3 pr119628]$ cat x1.c #define DONT_SAVE_REGS __attribute__((no_callee_saved_registers

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #6 from H.J. Lu --- no_caller_saved_registers only works with XMM and ZMM, not YMM, since YMM load will clear the upper 256 bits of ZMM.

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-13 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 H.J. Lu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-09 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 H.J. Lu changed: What|Removed |Added Last reconfirmed||2025-04-09 CC|

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #3 from H.J. Lu --- (In reply to ak from comment #2) > The existing attributes could just handle this case? Caller needs to know what registers are saved by callee. But caller doesn't know what ISAs are used by callee.

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls

2025-04-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 --- Comment #1 from H.J. Lu --- no_calle(e|r)_saved_registers=gpr(16|32)?

[Bug fortran/119540] New: [15 Regression] FAIL: gfortran.dg/reduce_1.f90 -O0 execution test

2025-03-29 Thread hjl.tools at gmail dot com via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 On x86-64, r15-9029-geb26b667518c95 gave FAIL

[Bug target/119539] New: [15 Regression] FAIL: gcc.target/i386/apx-nf.c scan-assembler-times {nf} rol 4

2025-03-29 Thread hjl.tools at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: haochen.jiang at intel dot com, liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 On x86-64

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 --- Comment #13 from H.J. Lu --- (In reply to Michael Matz from comment #11) > access to the respective GOT slot). Upstream binutils now silently do emit a > route via PLT, our binutils complain. I'm not sure that upstream behaviour > is > i

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/117069] [15 Regression] gcc.target/i386/apx-ndd-tls-1b.c since r15-268-g9dbff9c05520a7

2025-03-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117069 --- Comment #10 from H.J. Lu --- (In reply to Hongtao Liu from comment #8) > (In reply to Hongtao Liu from comment #6) > > It looks like the testcase is fragile, it's supposed to check the compiler > > ability of generating code_6_gottpoff_reloc

[Bug target/117069] [15 Regression] gcc.target/i386/apx-ndd-tls-1b.c since r15-268-g9dbff9c05520a7

2025-03-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117069 --- Comment #11 from H.J. Lu --- (In reply to H.J. Lu from comment #10) > (In reply to Hongtao Liu from comment #8) > > (In reply to Hongtao Liu from comment #6) > > > It looks like the testcase is fragile, it's supposed to check the compiler >

[Bug tree-optimization/119299] Jump followed by jump not optimized.

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119299 --- Comment #3 from H.J. Lu --- (In reply to AK from comment #0) ... > https://godbolt.org/z/3xh6Mxq4j FYI, https://gitlab.com/x86-gcc/gcc/-/tree/users/hjl/condjmp/gcc-16?ref_type=heads generates: .globl g1 .type g1, @func

[Bug middle-end/119297] New: Dead local vector variable isn't removed

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
ormal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-tgl-3 gcc]$ cat /tmp/y.c typedef char vec_t __attribute__((vector_size(16))); extern void func1(vec_t); extern void

[Bug tree-optimization/119294] Could improve vector formation when generated using a loop (vector char)

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119294 --- Comment #5 from H.J. Lu --- CSE turns (insn 18 16 19 2 (set (mem/c:V16QI (plus:DI (reg/f:DI 19 frame) (const_int -16 [0xfff0])) [0 MEM [(void *)&x]+0 S16 A128]) (subreg:V16QI (reg:V4SI 111) 0)) "x.c":11:

[Bug rtl-optimization/119297] Dead local vector variable isn't removed

2025-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119297 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Component|middle-end

[Bug rtl-optimization/119171] [15 Regression] error: ‘asm’ operand has impossible constraints or there are not enough registers

2025-03-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119171 H.J. Lu changed: What|Removed |Added Resolution|INVALID |FIXED

[Bug rtl-optimization/119171] [15 Regression] error: ‘asm’ operand has impossible constraints or there are not enough registers

2025-03-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119171 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/119171] New: [15 Regression] error: ‘asm’ operand has impossible constraints or there are not enough registers

2025-03-08 Thread hjl.tools at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- On x86-64, r15-7900-g622968990beee7 gave: [hjl@gnu-tgl-3 pr119083]$ cat x.i long

[Bug target/119142] [15 Regression] Many regressions since r15-7852 on i686-linux

2025-03-06 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119142 --- Comment #8 from H.J. Lu --- Created attachment 60673 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60673&action=edit A patch I am testing this with if (GENERAL_REGNO_P (hard_regno)) { /* push is 1 byte while typical spil

[Bug target/119142] [15 Regression] Many regressions since r15-7852 on i686-linux

2025-03-06 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119142 --- Comment #7 from H.J. Lu --- Something like diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index 661e71b032c..8e599bb22fc 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -20613,11 +20613,10 @@ ix86_calle

[Bug target/119142] [15 Regression] Many regressions since r15-7852 on i686-linux

2025-03-06 Thread hjl.tools at gmail dot com via Gcc-bugs
|NEW CC||hjl.tools at gmail dot com Ever confirmed|0 |1

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119083 --- Comment #8 from H.J. Lu --- Created attachment 60647 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60647&action=edit A patch to remove CREG and BREG from ix86_class_likely_spilled_p Hongtao, can you measure its impact on SPEC CPU 201

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119083 --- Comment #6 from H.J. Lu --- (In reply to H.J. Lu from comment #4) > (In reply to Uroš Bizjak from comment #1) > > SSE_FIRST_REG is in ic86_class_likely_spilled_p because it is a > > single-member class. It is there because of SSE4 pcmpistrm

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for x86-64?

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #15 from H.J. Lu --- (In reply to Hongtao Liu from comment #14) > (In reply to H.J. Lu from comment #13) > > (In reply to H.J. Lu from comment #11) > > > Created attachment 60609 [details] > > > An untested patch > > > > Hongtao, do

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for x86-64?

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #13 from H.J. Lu --- (In reply to H.J. Lu from comment #11) > Created attachment 60609 [details] > An untested patch Hongtao, do you have SPEC CPU2017 data on this patch?

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119083 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/119083] Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-02 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119083 --- Comment #3 from H.J. Lu --- Created attachment 60640 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60640&action=edit A patch to remove SSE_FIRST_REG from ix86_class_likely_spilled_p Hongtao, can you measure its impact on SPEC CPU2017

[Bug target/119083] New: Remove SSE_FIRST_REG from ix86_class_likely_spilled_p

2025-03-01 Thread hjl.tools at gmail dot com via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86 SSE_FIRST_REG was added to CLASS_LIKELY_SPILLED_P, which became

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #12 from H.J. Lu --- (In reply to H.J. Lu from comment #11) > Created attachment 60609 [details] > An untested patch Tested on x86-64 with RUNTESTFLAGS="--target_board='unix{-m32,}'". There are no regressions.

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 H.J. Lu changed: What|Removed |Added Attachment #60607|0 |1 is obsolete|

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #9 from H.J. Lu --- (In reply to H.J. Lu from comment #8) > Created attachment 60607 [details] > A patch > > Here is the patch to change TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P to > return false for x86-64. This doesn't work: /ex

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #10 from H.J. Lu --- Testing this: diff --git a/gcc/ira.cc b/gcc/ira.cc index 885239d1b43..e93a596e2a9 100644 --- a/gcc/ira.cc +++ b/gcc/ira.cc @@ -2158,6 +2158,10 @@ decrease_live_ranges_number (void) || (targetm.small_regis

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #8 from H.J. Lu --- Created attachment 60607 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60607&action=edit A patch Here is the patch to change TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P to return false for x86-64.

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 --- Comment #6 from H.J. Lu --- SMALL_REGISTER_CLASSES was added by commit c98f874233428d7e6ba83def7842fd703ac0ddf1 Author: James Van Artsdalen Date: Sun Feb 9 13:28:48 1992 + Initial revision which became TARGET_SMALL_REGISTER_CLA

[Bug target/118992] Redundant argument set up for call

2025-02-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 H.J. Lu changed: What|Removed |Added Attachment #60590|0 |1 is obsolete|

[Bug target/118992] Redundant argument set up for call

2025-02-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #14 from H.J. Lu --- (In reply to Hongtao Liu from comment #13) > (In reply to H.J. Lu from comment #11) > > Created attachment 60590 [details] > > A patch > > > > Can you try this on SPEC CPU? > > No big impact for both O2 and Ofa

[Bug target/118992] Redundant argument set up for call

2025-02-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #11 from H.J. Lu --- Created attachment 60590 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60590&action=edit A patch Can you try this on SPEC CPU?

[Bug target/118992] Redundant argument set up for call

2025-02-25 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #10 from H.J. Lu --- (In reply to Hongtao Liu from comment #9) > > > Remove check of 2 hooks regressed > > gcc: gcc.target/i386/pr111673.c check-function-bodies advance > unix/-m32: gcc: gcc.target/i386/pr49095.c scan-assembler-not

[Bug target/118992] Redundant argument set up for call

2025-02-24 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #8 from H.J. Lu --- (In reply to Richard Biener from comment #7) > > >else if (targetm.small_register_classes_for_mode_p (GET_MODE (x))) > > record = false; > >else if (targetm.class_likely_spilled_p (REGNO

[Bug target/118996] Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-23 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118996 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/118996] New: Should TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P return false for APX?

2025-02-23 Thread hjl.tools at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: liuhongt at gcc dot gnu.org Target Milestone: --- Target: x86-64 i386 has #define

  1   2   3   4   5   6   7   8   9   10   >