Add testcase for PR5703

llvm-svn: 91931
This commit is contained in:
Anton Korobeynikov 2009-12-22 22:37:23 +00:00
parent 39740dce30
commit ef3fdc1cbd
1 changed files with 13 additions and 0 deletions

View File

@ -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)