[PATCH] D84417: [MSP430] Do not use __mspabi_cmp[fd] for FP comparisons

Anatoly Trosinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 08:01:53 PDT 2020


atrosinenko created this revision.
atrosinenko added reviewers: asl, awygle, pftbest.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

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 <https://www.ti.com/lit/an/slaa534a/slaa534a.pdf> for details.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84417

Files:
  llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
  llvm/test/CodeGen/MSP430/cmp-return-type.ll
  llvm/test/CodeGen/MSP430/libcalls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84417.280126.patch
Type: text/x-patch
Size: 14705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200723/fe65d260/attachment.bin>


More information about the llvm-commits mailing list