Browse Source

Corrected 64bit memory size for pop float

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7587 8c9fc860-2736-0410-a75d-ab315db34111
felixf 7 years ago
parent
commit
3b3e542b91
1 changed files with 5 additions and 1 deletions
  1. 5 1
      source/FoxAMDBackend.Mod

+ 5 - 1
source/FoxAMDBackend.Mod

@@ -2986,7 +2986,11 @@ TYPE
 					MakeOperand(vop,Low,op,NIL);
 					Move(op, memop, vop.type)
 				END;
-				AllocateStack(-sizeInBytes*length);
+				IF sizeInBytes * length * 8 < cpuBits THEN 
+					AllocateStack(-cpuBits DIV 8);
+				ELSE
+					AllocateStack(-sizeInBytes*length);
+				END;
 			END;
 		END EmitPopFloat;