From f08c0eab150eec0f9393423fae4be1262feb7bf2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 30 Jan 2007 23:06:22 +0000 Subject: [PATCH] Combine two tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33668 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ARM/addSubConstant.ll | 19 ------------------- test/CodeGen/ARM/large-stack.ll | 12 +++++++++++- 2 files changed, 11 insertions(+), 20 deletions(-) delete mode 100644 test/CodeGen/ARM/addSubConstant.ll diff --git a/test/CodeGen/ARM/addSubConstant.ll b/test/CodeGen/ARM/addSubConstant.ll deleted file mode 100644 index 1cb8844c035..00000000000 --- a/test/CodeGen/ARM/addSubConstant.ll +++ /dev/null @@ -1,19 +0,0 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm && -; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep "805306384" - - -int %main() { -entry: - %retval = alloca int, align 4 ; [#uses=2] - %tmp = alloca int, align 4 ; [#uses=2] - %a = alloca [805306369 x sbyte], align 16 ; <[805306369 x sbyte]*> [#uses=0] - "alloca point" = bitcast int 0 to int ; [#uses=0] - store int 0, int* %tmp - %tmp = load int* %tmp ; [#uses=1] - store int %tmp, int* %retval - br label %return - -return: ; preds = %entry - %retval = load int* %retval ; [#uses=1] - ret int %retval -} diff --git a/test/CodeGen/ARM/large-stack.ll b/test/CodeGen/ARM/large-stack.ll index 4402659e13b..695c4c6e1d1 100644 --- a/test/CodeGen/ARM/large-stack.ll +++ b/test/CodeGen/ARM/large-stack.ll @@ -1,5 +1,6 @@ ; RUN: llvm-as < %s | llc -march=arm && -; RUN: llvm-as < %s | llc -march=arm -enable-thumb +; RUN: llvm-as < %s | llc -march=arm -enable-thumb && +; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep 'ldr.*LCP' | wc -l | grep 5 define void @test1() { %tmp = alloca [ 64 x i32 ] , align 4 @@ -10,3 +11,12 @@ define void @test2() { %tmp = alloca [ 4168 x i8 ] , align 4 ret void } + +define i32 @test3() { + %retval = alloca i32, align 4 + %tmp = alloca i32, align 4 + %a = alloca [805306369 x i8], align 16 + store i32 0, i32* %tmp + %tmp1 = load i32* %tmp + ret i32 %tmp1 +} -- 2.34.1