Add testcase for PR5703
authorAnton Korobeynikov <asl@math.spbu.ru>
Tue, 22 Dec 2009 22:37:23 +0000 (22:37 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Tue, 22 Dec 2009 22:37:23 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91931 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/MSP430/2009-12-21-FrameAddr.ll [new file with mode: 0644]

diff --git a/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll b/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll
new file mode 100644 (file)
index 0000000..b92477b
--- /dev/null
@@ -0,0 +1,13 @@
+; RUN: llc < %s
+; PR5703
+target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
+target triple = "msp430-unknown-linux-gnu"
+
+define msp430_intrcc void @foo() nounwind {
+entry:
+       %fa = call i16* @llvm.frameaddress(i32 0)
+       store i16 0, i16* %fa
+       ret void
+}
+
+declare i16* @llvm.frameaddress(i32)