[Bug target/113010] [RISCV] sign-extension lost in comparison with constant embedded in comma-op expression

2024-01-10 Thread gkm at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113010 --- Comment #7 from Greg McGary --- (In reply to Greg McGary from comment #6) > I agree that it pertains to WORD_REGISTER_OPERATIONS. However, the check > needs to happen. ... needs to happen *earlier*. (I wish comments were editable)

[Bug target/113010] [RISCV] sign-extension lost in comparison with constant embedded in comma-op expression

2024-01-10 Thread gkm at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113010 --- Comment #6 from Greg McGary --- (In reply to Andrew Pinski from comment #5) > (In reply to Andrew Pinski from comment #4) > > (In reply to Greg McGary from comment #3) > > > This fixes it, though I would like second look from someone more

[Bug target/113010] [RISCV] sign-extension lost in comparison with constant embedded in comma-op expression

2024-01-09 Thread gkm at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113010 Greg McGary changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|DUPLICATE

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-21 Thread gkm at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #15 from Greg McGary --- I have a simple patch for this which I will submit soon. The idea is to do nothing in expand_compound_operation() when the pattern is (sign_extend (mem ...) ).

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-16 Thread gkm at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #14 from Greg McGary --- I bisected to here for the commit that broke the non-Zbs case: https://github.com/gcc-mirror/gcc/commit/2e886eef7f2b5aadb00171af868f0895b647c3a4 ... and here for Zbs case:

[Bug target/113010] New: [RISCV] sign-extension lost in comparison with constant embedded in comma-op expression

2023-12-13 Thread gkm at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113010 Bug ID: 113010 Summary: [RISCV] sign-extension lost in comparison with constant embedded in comma-op expression Product: gcc Version: 13.0 Status: UNCONFIRMED