According to MSP430 EABI document, Section 6.2, the result of
__mspabi_cmp[fd] is undefined if either of its arguments is NaN.
See Sections 6.1 and 6.2 of MSP430 EABI document for details.
Paths
| Differential D84417
[MSP430] Do not use __mspabi_cmp[fd] for FP comparisons Needs ReviewPublic Authored by atrosinenko on Jul 23 2020, 8:01 AM.
Details Summary According to MSP430 EABI document, Section 6.2, the result of See Sections 6.1 and 6.2 of MSP430 EABI document for details.
Diff Detail
Event TimelineComment Actions Hmm, this probably needs further investigations... On one hand, condition codes such as ISD::SETNE are explicit "Don't care operations: undefined if the input is a nan" - that is, exactly how the __mspabi_cmp[fd] are described in MSP430 EABI document. On the other hand, how a fully fledged comparison libcall can be specified then?
Revision Contents
Diff 280126 llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
llvm/test/CodeGen/MSP430/cmp-return-type.ll
llvm/test/CodeGen/MSP430/libcalls.ll
|