summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-10-29 19:29:03 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-10-29 19:29:03 +0000
commit6b2d8419758b38d31f0da0c74a112bad12b02ddc (patch)
treed3c6bc6f5a4b678b9a8d1f60fb8ffdeb28a1809b /llvm/test
parent618b29813ac587a85513acca9710d0e3be1bc46b (diff)
downloadbcm5719-llvm-6b2d8419758b38d31f0da0c74a112bad12b02ddc.tar.gz
bcm5719-llvm-6b2d8419758b38d31f0da0c74a112bad12b02ddc.zip
[mips] Align the stack to 16-bytes for mfp64.
llvm-svn: 193641
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Mips/stack-alignment.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/stack-alignment.ll b/llvm/test/CodeGen/Mips/stack-alignment.ll
new file mode 100644
index 00000000000..403a10625f4
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/stack-alignment.ll
@@ -0,0 +1,14 @@
+; 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=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 {
+entry:
+ ret i32 14
+}
+
+attributes #0 = { "no-frame-pointer-elim"="true" }
OpenPOWER on IntegriCloud