summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll')
-rw-r--r--llvm/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll b/llvm/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll
new file mode 100644
index 00000000000..d7e138abd92
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll
@@ -0,0 +1,18 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc
+
+; 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 ) ; <int>:0 [#uses=0]
+ ret void
+end
+
+
OpenPOWER on IntegriCloud