summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/RISCV/stack-realignment-unsupported.ll
diff options
context:
space:
mode:
authorShiva Chen <shiva@andestech.com>2019-10-15 15:11:35 +0800
committershiva <shiva0217@gmail.com>2019-11-16 12:39:53 +0800
commitcf6cf0cd147ac2524c3533fd7c7ada7f95f6da60 (patch)
tree3d0a037b9119bd6c991651c9ea2265d289935dce /llvm/test/CodeGen/RISCV/stack-realignment-unsupported.ll
parent77cfcd75092b57693d40123a013e59295634a945 (diff)
downloadbcm5719-llvm-cf6cf0cd147ac2524c3533fd7c7ada7f95f6da60.tar.gz
bcm5719-llvm-cf6cf0cd147ac2524c3533fd7c7ada7f95f6da60.zip
[RISCV] Handle variable sized objects with the stack need to be realigned
Differential Revision: https://reviews.llvm.org/D68979
Diffstat (limited to 'llvm/test/CodeGen/RISCV/stack-realignment-unsupported.ll')
-rw-r--r--llvm/test/CodeGen/RISCV/stack-realignment-unsupported.ll13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/RISCV/stack-realignment-unsupported.ll b/llvm/test/CodeGen/RISCV/stack-realignment-unsupported.ll
deleted file mode 100644
index f2f11b073cf..00000000000
--- a/llvm/test/CodeGen/RISCV/stack-realignment-unsupported.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: not llc -mtriple=riscv32 < %s 2>&1 | FileCheck %s
-; RUN: not llc -mtriple=riscv64 < %s 2>&1 | FileCheck %s
-
-; CHECK: LLVM ERROR: RISC-V backend can't currently handle functions that need stack realignment and have variable sized objects
-
-declare void @callee(i8*, i32*)
-
-define void @caller(i32 %n) nounwind {
- %1 = alloca i8, i32 %n
- %2 = alloca i32, align 64
- call void @callee(i8* %1, i32 *%2)
- ret void
-}
OpenPOWER on IntegriCloud