[PATCH] D112388: x86: Fix lowering of libm libcalls w/ fp128 operands

LemonBoy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 24 13:11:24 PDT 2021


LemonBoy created this revision.
LemonBoy added a reviewer: craig.topper.
Herald added subscribers: pengfei, hiraditya.
LemonBoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The libm functions suffixed with `-l` work with `long double` operands, meaning that when targeting x86 those cannot be used when lowering `fp128` operations.

Use the alternative naming already employed by other platforms such as PPC, where the ops working on `fp128` values are suffixed with `128`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112388

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/fp128-libcalls-strict.ll
  llvm/test/CodeGen/X86/fp128-libcalls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112388.381796.patch
Type: text/x-patch
Size: 21093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211024/edcc537a/attachment.bin>


More information about the llvm-commits mailing list