summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2006-01-26 09:45:03 +0000
committerDuraid Madina <duraid@octopus.com.au>2006-01-26 09:45:03 +0000
commitb0636041c88d9e7d63bb8840df7eb18b96175f58 (patch)
treebb60ac9917feb00fb6409dc4ce50414997c713da /lib
parentd92f116a1ce713f2484db45dcbdb66cfbb98475e (diff)
downloadllvm-b0636041c88d9e7d63bb8840df7eb18b96175f58.tar.gz
llvm-b0636041c88d9e7d63bb8840df7eb18b96175f58.tar.bz2
llvm-b0636041c88d9e7d63bb8840df7eb18b96175f58.tar.xz
fix stack corruption! Previously, 16-byte whole-FP-register stores were
being treated as needing only 8 bytes (though they were 16 byte aligned.) This should fix a bunch of tests - anyone have any comments, though? - in Target.td , SpillSize and SpillAlignment seem dead - is this what Size and Alignment do now? - in CodeGenRegisters.h/CodeGenTarget.cpp , DeclaredSpillSize and DeclaredSpillAlignment seem dead. - there are a bunch of comments here and there that don't clearly distinguish between 'size' and 'spillsize' etc. hmm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/IA64/IA64RegisterInfo.td11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Target/IA64/IA64RegisterInfo.td b/lib/Target/IA64/IA64RegisterInfo.td
index 28a4560339..4447113607 100644
--- a/lib/Target/IA64/IA64RegisterInfo.td
+++ b/lib/Target/IA64/IA64RegisterInfo.td
@@ -283,10 +283,7 @@ def GR : RegisterClass<"IA64", [i64], 64,
// these are the scratch (+stacked) FP registers
-// the 128 here is to make stf.spill/ldf.fill happy,
-// when storing full (82-bit) FP regs to stack slots
-// we need to 16-byte align
-def FP : RegisterClass<"IA64", [f64], 128,
+def FP : RegisterClass<"IA64", [f64], 64,
[F6, F7,
F8, F9, F10, F11, F12, F13, F14, F15,
F32, F33, F34, F35, F36, F37, F38, F39,
@@ -303,6 +300,12 @@ def FP : RegisterClass<"IA64", [f64], 128,
F120, F121, F122, F123, F124, F125, F126, F127,
F0, F1]> // these last two are hidden
{
+// the 128s here are to make stf.spill/ldf.fill happy,
+// when storing full (82-bit) FP regs to stack slots
+// we need to 16-byte align
+ let Size=128;
+ let Alignment=128;
+
let MethodProtos = [{
iterator allocation_order_begin(MachineFunction &MF) const;
iterator allocation_order_end(MachineFunction &MF) const;