mirror of
https://github.com/jeremysrand/llvm-65816.git
synced 2025-08-05 03:24:29 +00:00
Fix the calling convention for return values. I believe the way this works is that you specify the width of the single register and a list of registers to return values in for anything bigger. By having a return convention for [i32], I seem to have been telling LLVM that it can return a 32-bit value in X which it cannot do.
This commit is contained in:
@@ -17,8 +17,7 @@
|
||||
|
||||
// WDC C return-value convention.
|
||||
def RetCC_WDC : CallingConv<[
|
||||
CCIfType<[i16], CCAssignToReg<[A]>>,
|
||||
CCIfType<[i32], CCAssignToReg<[X, A]>>
|
||||
CCIfType<[i16], CCAssignToReg<[A, X]>>
|
||||
]>;
|
||||
|
||||
// WDC C Calling convention.
|
||||
|
Reference in New Issue
Block a user