mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
MMX vectors are passed 4-byte aligned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
567a273370
commit
3edd6dcf82
@ -203,16 +203,16 @@ def CC_X86_32_Common : CallingConv<[
|
||||
// Long doubles get slots whose size depends on the subtarget.
|
||||
CCIfType<[f80], CCAssignToStack<0, 4>>,
|
||||
|
||||
// The first 4 vector arguments are passed in XMM registers.
|
||||
// The first 4 SSE vector arguments are passed in XMM registers.
|
||||
CCIfNotVarArg<CCIfType<[v16i8, v8i16, v4i32, v2i64, v4f32, v2f64],
|
||||
CCAssignToReg<[XMM0, XMM1, XMM2, XMM3]>>>,
|
||||
|
||||
// Other vectors get 16-byte stack slots that are 16-byte aligned.
|
||||
// Other SSE vectors get 16-byte stack slots that are 16-byte aligned.
|
||||
CCIfType<[v16i8, v8i16, v4i32, v2i64, v4f32, v2f64], CCAssignToStack<16, 16>>,
|
||||
|
||||
// __m64 vectors get 8-byte stack slots that are 8-byte aligned. They are
|
||||
// __m64 vectors get 8-byte stack slots that are 4-byte aligned. They are
|
||||
// passed in the parameter area.
|
||||
CCIfType<[v8i8, v4i16, v2i32, v1i64], CCAssignToStack<8, 8>>
|
||||
CCIfType<[v8i8, v4i16, v2i32, v1i64], CCAssignToStack<8, 4>>
|
||||
]>;
|
||||
|
||||
def CC_X86_32_C : CallingConv<[
|
||||
|
Loading…
Reference in New Issue
Block a user