summaryrefslogtreecommitdiff
path: root/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll
blob: c3d69c7c0db5e25cf96fd26c8284cd3fce160847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 i8* @llvm.frameaddress(i32 0)
	store i8 0, i8* %fa
	ret void
}

declare i8* @llvm.frameaddress(i32)