[AArch64] Fix calling windows varargs with floats in fixed args from non-windows...
authorMartin Storsjö <martin@martin.st>
Tue, 20 Apr 2021 21:05:01 +0000 (00:05 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 22 Apr 2021 09:02:49 +0000 (12:02 +0300)
commit8000e1f5789c423e7c447782de65c56d84b66e1e
tree680ed691775cabd10c206062d4179f19c88ccc86
parent398f25340000f26d648ebbc7eae9dc401ffc7d5f
[AArch64] Fix calling windows varargs with floats in fixed args from non-windows functions

When inspecting the calling convention, for calling windows functions
from a non-windows function, inspect the calling convention of
the called function, not the caller.

Also remove an unnecessary parameter to AArch64CallLowering
OutgoingArgHandler.

Differential Revision: https://reviews.llvm.org/D100890
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
llvm/test/CodeGen/AArch64/win64_vararg_float.ll
llvm/test/CodeGen/AArch64/win64_vararg_float_cc.ll [new file with mode: 0644]