mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Fix FP return for Win64 ABI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6833b0601b
commit
2810d675f8
@ -83,6 +83,10 @@ def RetCC_X86_Win64_C : CallingConv<[
|
||||
// The X86-Win64 calling convention always returns __m64 values in RAX.
|
||||
CCIfType<[v8i8, v4i16, v2i32, v1i64], CCAssignToReg<[RAX]>>,
|
||||
|
||||
// And FP in XMM0 only.
|
||||
CCIfType<[f32], CCAssignToReg<[XMM0]>>,
|
||||
CCIfType<[f64], CCAssignToReg<[XMM0]>>,
|
||||
|
||||
// Otherwise, everything is the same as 'normal' X86-64 C CC.
|
||||
CCDelegateTo<RetCC_X86_64_C>
|
||||
]>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user