mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
SSE varargs arguments are passed in memory.
llvm-svn: 46262
This commit is contained in:
parent
77b77f347a
commit
d436c2e724
@ -190,8 +190,8 @@ def CC_X86_32_Common : CallingConv<[
|
||||
CCIfType<[f80], CCAssignToStack<0, 4>>,
|
||||
|
||||
// The first 4 vector arguments are passed in XMM registers.
|
||||
CCIfType<[v16i8, v8i16, v4i32, v2i64, v4f32, v2f64],
|
||||
CCAssignToReg<[XMM0, XMM1, XMM2, XMM3]>>,
|
||||
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.
|
||||
CCIfType<[v16i8, v8i16, v4i32, v2i64, v4f32, v2f64], CCAssignToStack<16, 16>>,
|
||||
|
9
test/CodeGen/X86/sse-varargs.ll
Normal file
9
test/CodeGen/X86/sse-varargs.ll
Normal file
@ -0,0 +1,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xmm | grep esp
|
||||
|
||||
define i32 @t() nounwind {
|
||||
entry:
|
||||
tail call void (i32, ...)* @foo( i32 1, <4 x i32> < i32 10, i32 11, i32 12, i32 13 > ) nounwind
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
declare void @foo(i32, ...)
|
Loading…
x
Reference in New Issue
Block a user