Fix NotTest - round up extraStack to the nearest doubleword, if it is
authorBrian Gaeke <gaeke@uiuc.edu>
Sun, 14 Nov 2004 05:19:00 +0000 (05:19 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Sun, 14 Nov 2004 05:19:00 +0000 (05:19 +0000)
not zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17728 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/README.txt
lib/Target/Sparc/SparcV8ISelSimple.cpp
lib/Target/SparcV8/README.txt
lib/Target/SparcV8/SparcV8ISelSimple.cpp

index bc524cb3927a773ba9c220b4e79be7478b2f0079..0a271d39aeb71c8ab348f0054a047bbc03d78c24 100644 (file)
@@ -13,7 +13,7 @@ SingleSource/Benchmarks (excluding Shootout-C++):
 fldry heapsort objinst Queens chomp misr pi whetstone bigfib
 
 SingleSource/UnitTests:
-C++Catch SimpleC++Test 2002-05-02-ArgumentTest 2002-05-03-NotTest
+C++Catch SimpleC++Test 2002-05-02-ArgumentTest
 2003-05-07-VarArgs 2003-07-09-SignedArgs 2003-08-11-VaListArg
 
 To-do
index fde13bf07006293d26dd2b90a277395a99201fa2..6999affa74204d3c7e017b7d9d558597788e3cdf 100644 (file)
@@ -780,6 +780,8 @@ void V8ISel::visitCallInst(CallInst &I) {
       default: extraStack += 4; break;
     }
   }
+  // Round up extra stack size to the nearest doubleword.
+  if (extraStack) { extraStack = (extraStack + 7) & ~7; }
 
   // Deal with args
   static const unsigned OutgoingArgRegs[] = { V8::O0, V8::O1, V8::O2, V8::O3,
index bc524cb3927a773ba9c220b4e79be7478b2f0079..0a271d39aeb71c8ab348f0054a047bbc03d78c24 100644 (file)
@@ -13,7 +13,7 @@ SingleSource/Benchmarks (excluding Shootout-C++):
 fldry heapsort objinst Queens chomp misr pi whetstone bigfib
 
 SingleSource/UnitTests:
-C++Catch SimpleC++Test 2002-05-02-ArgumentTest 2002-05-03-NotTest
+C++Catch SimpleC++Test 2002-05-02-ArgumentTest
 2003-05-07-VarArgs 2003-07-09-SignedArgs 2003-08-11-VaListArg
 
 To-do
index fde13bf07006293d26dd2b90a277395a99201fa2..6999affa74204d3c7e017b7d9d558597788e3cdf 100644 (file)
@@ -780,6 +780,8 @@ void V8ISel::visitCallInst(CallInst &I) {
       default: extraStack += 4; break;
     }
   }
+  // Round up extra stack size to the nearest doubleword.
+  if (extraStack) { extraStack = (extraStack + 7) & ~7; }
 
   // Deal with args
   static const unsigned OutgoingArgRegs[] = { V8::O0, V8::O1, V8::O2, V8::O3,