https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107172
--- Comment #44 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Segher Boessenkool from comment #42)
> (In reply to H.J. Lu from comment #41)
> > (In reply to Segher Boessenkool from comment #40)
> > > Let me repeat: A const_int cannot be assigned to a MODE_CC. It has no
> > > meaning.
> > > This is invalid RTL. If it ever works, or worked, that is an accident.
> >
> > Can we make it to work with a target hook? It will allow more backed
> > optimizations.
>
> No, you cannot. A lot of generic code will not work with your special
> re-interpretation of basic RTL rules. Just write correct code in your
> backend, it is not hard.
Does it look correct:
(set (reg:CCC FLAGS_REG)
(unspec:CCC [(match_dup 1) (const_int 0)] UNSPEC_CC_NE))