[mips] Partially revert r193641. Stack alignment should not be determined by
authorAkira Hatanaka <ahatanaka@mips.com>
Mon, 11 Nov 2013 21:49:03 +0000 (21:49 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Mon, 11 Nov 2013 21:49:03 +0000 (21:49 +0000)
the floating point register mode.

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

lib/Target/Mips/MipsSubtarget.h
test/CodeGen/Mips/stack-alignment.ll

index 7c175537a725b7d5052697a8c7e844ec2a4aa677..6b2ab1238b875651a8300355cb4b37f27984d0c9 100644 (file)
@@ -217,7 +217,7 @@ public:
 //
 static bool useConstantIslands();
 
-  unsigned stackAlignment() const { return isFP64bit() ? 16 : 8; }
+  unsigned stackAlignment() const { return hasMips64() ? 16 : 8; }
 
   // Grab MipsRegInfo object
   const MipsReginfo &getMReginfo() const { return MRI; }
index 403a10625f497464f01b11685e9c5c2f18faa71c..b18f96695ff571e08aacff312a4c5ec9f78486ef 100644 (file)
@@ -1,9 +1,8 @@
 ; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=32
-; RUN: llc -march=mipsel -mattr=+fp64 < %s | FileCheck %s -check-prefix=32-FP64
+; RUN: llc -march=mipsel -mattr=+fp64 < %s | FileCheck %s -check-prefix=32
 ; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s -check-prefix=64
 
 ; 32:      addiu  $sp, $sp, -8
-; 32-FP64: addiu  $sp, $sp, -16
 ; 64:      addiu  $sp, $sp, -16
 
 define i32 @foo1() #0 {