[Bug rtl-optimization/126276] [17 Regression] Recent change breaks cris-elf

"hp at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126276

--- Comment #8 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
I think I got it: ideally, the fix should have been local to the "*btst<mode>"
pattern: no need to change the mode of the *result* of the zero_extract, as
it's inherently zero-extending (see rtl.texi).

That also means that the r17-2413 could drop the "precision <=
GET_MODE_UNIT_PRECISION (GET_MODE (XEXP (op, 0)))" condition for
zero_extract...I think.

Also spotted missing define_insn_and_split:s in cris.md for btst from cstore,
not just cbranch.

Let's see if I can get any or all of those done.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.