llvm-project
01de801a - RuntimeLibcalls: Add generic FCMP3_F* three-way compare for single-symbol ABIs (#211618)

Commit
36 days ago
RuntimeLibcalls: Add generic FCMP3_F* three-way compare for single-symbol ABIs (#211618) MSP430's __mspabi_cmpd/__mspabi_cmpf are one three-way compare symbol serving every predicate, previously modeled as six suffixed impls each. Replace them with a single generic operator FCMP3_*, and give softenSetCCOperands a 3rd lowering option. After the boolean O*_F* and the per-predicate FCMP3_<pred>_F* helpers, use the generic FCMP3_F* helper tested with the predicate's condition code. Also opt __nedf2 out of the MSP430 default set: it was the only libgcc F64 compare not already opted out, so it would otherwise provide FCMP3_UNE_F64 and win over __mspabi_cmpd for not-equal. Co-authored-by: Claude (Opus 4.8) <noreply@anthropic.com>
Author
Parents
Loading