[PATCH] D44592: [X86] Properly implement the calling convention for f80 for win64

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 16 16:08:46 PDT 2018


mstorsjo created this revision.
mstorsjo added reviewers: rnk, compnerd, efriedma.

In these cases, both parameters and return values are passed as a pointer to a stack allocation.

MSVC doesn't use the f80 data type at all, while it is used for long doubles on mingw.

      

The CCIfNotSubtarget part feels rather unclean, is there any other way to match this earlier and have it stop matching, to trigger the same behaviour as if there was no match?

This is an alternative to https://reviews.llvm.org/D44582, fixing the same issue.


Repository:
  rL LLVM

https://reviews.llvm.org/D44592

Files:
  lib/Target/X86/X86CallingConv.td
  test/CodeGen/X86/finite-libcalls.ll
  test/CodeGen/X86/scalar-fp-to-i64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44592.138795.patch
Type: text/x-patch
Size: 9608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180316/49807bfb/attachment.bin>


More information about the llvm-commits mailing list