[llvm-commits] CVS: llvm/lib/Target/X86/X86CallingConv.td
Bill Wendling
isanbard at gmail.com
Fri Mar 30 18:04:10 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86CallingConv.td updated: 1.11 -> 1.12
---
Log message:
Match GCC's MMX calling convention.
---
Diffs of the changes: (+4 -0)
X86CallingConv.td | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Target/X86/X86CallingConv.td
diff -u llvm/lib/Target/X86/X86CallingConv.td:1.11 llvm/lib/Target/X86/X86CallingConv.td:1.12
--- llvm/lib/Target/X86/X86CallingConv.td:1.11 Thu Mar 29 19:35:22 2007
+++ llvm/lib/Target/X86/X86CallingConv.td Fri Mar 30 20:03:53 2007
@@ -101,6 +101,10 @@
CCIfType<[f32, f64, v16i8, v8i16, v4i32, v2i64, v4f32, v2f64],
CCAssignToReg<[XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7]>>,
+ // The first 8 MMX vector arguments are passed in MMX registers.
+ CCIfType<[v8i8, v4i16, v2i32, v1i64],
+ CCAssignToReg<[RDI, RSI, RDX, RCX, R8 , R9 ]>>,
+
// Integer/FP values get stored in stack slots that are 8 bytes in size and
// 8-byte aligned if there are no more registers to hold them.
CCIfType<[i32, i64, f32, f64], CCAssignToStack<8, 8>>,
More information about the llvm-commits
mailing list