llvm-6502/test/CodeGen/MSP430/2009-12-21-FrameAddr.ll
Chris Lattner c32cef6aa1 These tests used intrinsics with the wrong prototype. They weren't caught because
the old verifier just checked that something "was a pointer", but not that the pointee
was correct.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157544 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-27 19:35:41 +00:00

14 lines
288 B
LLVM

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