rs6000: Workaround for new ifcvt behavior [PR104335].
authorRobin Dapp <rdapp@linux.ibm.com>
Thu, 17 Feb 2022 18:59:51 +0000 (19:59 +0100)
committerRobin Dapp <rdapp@linux.ibm.com>
Thu, 17 Feb 2022 18:59:51 +0000 (19:59 +0100)
commitfac15bf84807a58f83c741b1034c1bc96348319d
treee3311a0966d4562eaa82a4a81ba7d2d918c7e7c0
parent73a118c209fcbb73c3439ca70fb233a5dc87daf7
rs6000: Workaround for new ifcvt behavior [PR104335].

Since r12-6747-gaa8cfe785953a0 ifcvt passes a "cc comparison"
i.e. the representation of the result of a comparison to the
backend.  rs6000_emit_int_cmove () is not prepared to handle this.
Therefore, this patch makes it return false in such a case.

PR target/104335

gcc/ChangeLog:

* config/rs6000/rs6000.cc (rs6000_emit_int_cmove): Return false
if the expected comparison's first operand is of mode MODE_CC.
gcc/config/rs6000/rs6000.cc