aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MSP430/2009-12-21-FrameAddr.ll')
-rw-r--r--test/CodeGen/MSP430/2009-12-21-FrameAddr.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll b/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll
new file mode 100644
index 0000000000..b92477bed5
--- /dev/null
+++ b/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll
@@ -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)