summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/stack-frame.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/stack-frame.ll')
-rw-r--r--test/CodeGen/ARM/stack-frame.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/stack-frame.ll b/test/CodeGen/ARM/stack-frame.ll
new file mode 100644
index 0000000000..8fa718f08e
--- /dev/null
+++ b/test/CodeGen/ARM/stack-frame.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -march=arm &&
+; RUN: llvm-as < %s | llc -march=arm | grep add | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
+; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep add | wc -l | grep 1
+
+define void @f1() {
+ %c = alloca i8, align 1
+ ret void
+}
+
+define i32 @f2() {
+ ret i32 1
+}
+
+