From 228c786e2878c727c785388bc27229317e1bacb6 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 30 Jan 2007 03:06:19 +0000 Subject: [PATCH] Add / merge tests. llvm-svn: 33654 --- test/CodeGen/ARM/spaddsub.ll | 10 ---------- test/CodeGen/ARM/stack-frame.ll | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 10 deletions(-) delete mode 100644 test/CodeGen/ARM/spaddsub.ll create mode 100644 test/CodeGen/ARM/stack-frame.ll diff --git a/test/CodeGen/ARM/spaddsub.ll b/test/CodeGen/ARM/spaddsub.ll deleted file mode 100644 index ef3b9b7c1d1..00000000000 --- a/test/CodeGen/ARM/spaddsub.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -f -march=arm -o %t.s && -; RUN: not grep "add r13, r13, #0" < %t.s && -; RUN: not grep "sub r13, r13, #0" < %t.s - -int %f() { -entry: - ret int 1 -} - - diff --git a/test/CodeGen/ARM/stack-frame.ll b/test/CodeGen/ARM/stack-frame.ll new file mode 100644 index 00000000000..8fa718f08ef --- /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 +} + +