[Bug target/109414] RISC-V: unnecessary sext.w in rv64

2023-10-07 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109414 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/109414] RISC-V: unnecessary sext.w in rv64

2023-04-04 Thread sinan.lin at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109414 --- Comment #4 from Sinan --- (In reply to Andrew Pinski from comment #1) > Actually this more related to WORD_REGISTER_OPERATIONS . > > (insn 7 4 8 2 (set (reg:SI 77) > (plus:SI (subreg/s/u:SI (reg/v:DI 74 [ x ]) 0) > (cons

[Bug target/109414] RISC-V: unnecessary sext.w in rv64

2023-04-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109414 --- Comment #3 from Andrew Pinski --- (In reply to Sinan from comment #2) > commit 23d9f62c50d935462ecda5516746037a474c25cd looks like a solution for > this. r13-4150-g23d9f62c50d935

[Bug target/109414] RISC-V: unnecessary sext.w in rv64

2023-04-04 Thread sinan.lin at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109414 --- Comment #2 from Sinan --- commit 23d9f62c50d935462ecda5516746037a474c25cd looks like a solution for this. like adding a new pattern for `not` ``` (define_insn "*one_cmpl_subreg" [(set (match_operand:DI 0 "register_operand" "=r")

[Bug target/109414] RISC-V: unnecessary sext.w in rv64

2023-04-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109414 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #1 from Andrew