]> git.ipfire.org Git - thirdparty/gcc.git/commit
powerpc: Add missing modes to P9 if_then_elses [PR121501] master trunk
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 14 Aug 2025 12:36:40 +0000 (13:36 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 14 Aug 2025 12:36:40 +0000 (13:36 +0100)
commit2934d4eea725fe9b560c5e51b859927c357ab6f7
tree94b1514da146eb41af0ea260129b03ae4ecf3055
parent5eccc9f4db9a96571dddfa089caad61f2833e63f
powerpc: Add missing modes to P9 if_then_elses [PR121501]

These patterns had one (if_then_else ...) nested within another.
The outer if_then_else had SImode, which means that the "then"
and "else" should also be SImode (unless they're const_ints).
However, the inner if_then_else was modeless, which led to an
assertion failure when trying to take a subreg of it.

gcc/
PR target/121501
* config/rs6000/rs6000.md (cmprb, setb_signed, setb_unsigned)
(cmprb2, cmpeqb): Add missing modes to nested if_then_elses.
gcc/config/rs6000/rs6000.md