[SPARC] Fix SELECT_REG emission for f128s
authorKoakuma <koachan@protonmail.com>
Thu, 22 Dec 2022 18:50:11 +0000 (13:50 -0500)
committerBrad Smith <brad@comstyle.com>
Thu, 22 Dec 2022 18:52:56 +0000 (13:52 -0500)
commitac16ea89dbcfc362c6bef841ab543df08bf9e6ec
tree64fd7d815061d2a3f16df45620106da27e7fdd06
parent513f094f623d1f3c5a4970587fc30f61a5c90bc8
[SPARC] Fix SELECT_REG emission for f128s

In LowerSELECT_CC, SELECT_REG between two f128s should only be emitted if we
have hardware quadfloat enabled.

This should fix issue #59646

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D140515
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/test/CodeGen/SPARC/fp128-select.ll [new file with mode: 0644]