From 7523a107d907fe8eb470681b62139bb0360e9559 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 16 Apr 2002 05:58:24 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2262 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2002-04-16-StackFrameSizeAlignment.ll | 16 ++++++++++++++++ test/LLC/2002-04-16-StackFrameSizeAlignment.ll | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll create mode 100644 test/LLC/2002-04-16-StackFrameSizeAlignment.ll diff --git a/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll b/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll new file mode 100644 index 00000000000..f43d5db2455 --- /dev/null +++ b/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll @@ -0,0 +1,16 @@ +; Compiling this file produces: +; Sparc.cpp:91: failed assertion `(offset - OFFSET) % getStackFrameSizeAlignment() == 0' +; +implementation + +declare int "SIM"(sbyte* %A, sbyte* %B, int %M, int %N, int %K, [256 x int]* %V, int %Q, int %R, int %nseq) + +void "foo"() +begin +bb0: ;[#uses=0] + %V = alloca [256 x int], uint 256 ; <[256 x int]*> [#uses=1] + call int %SIM( sbyte* null, sbyte* null, int 0, int 0, int 0, [256 x int]* %V, int 0, int 0, int 2 ) ; :0 [#uses=0] + ret void +end + + diff --git a/test/LLC/2002-04-16-StackFrameSizeAlignment.ll b/test/LLC/2002-04-16-StackFrameSizeAlignment.ll new file mode 100644 index 00000000000..f43d5db2455 --- /dev/null +++ b/test/LLC/2002-04-16-StackFrameSizeAlignment.ll @@ -0,0 +1,16 @@ +; Compiling this file produces: +; Sparc.cpp:91: failed assertion `(offset - OFFSET) % getStackFrameSizeAlignment() == 0' +; +implementation + +declare int "SIM"(sbyte* %A, sbyte* %B, int %M, int %N, int %K, [256 x int]* %V, int %Q, int %R, int %nseq) + +void "foo"() +begin +bb0: ;[#uses=0] + %V = alloca [256 x int], uint 256 ; <[256 x int]*> [#uses=1] + call int %SIM( sbyte* null, sbyte* null, int 0, int 0, int 0, [256 x int]* %V, int 0, int 0, int 2 ) ; :0 [#uses=0] + ret void +end + +