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)
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 fa
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113010
Greg McGary changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|DUPLICATE
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
...) ).
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:
https://github.com/gcc-mirror/gcc/c
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