diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-12-22 22:37:23 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-12-22 22:37:23 +0000 |
commit | a1508f95142064b0fb767aadb21764275be71e46 (patch) | |
tree | cff64096275a841b73b7ab398c9910b239c1044e /test/CodeGen/MSP430 | |
parent | 18ea3a1551214f1ff3f123f2d67443d5f19baea5 (diff) | |
download | external_llvm-a1508f95142064b0fb767aadb21764275be71e46.zip external_llvm-a1508f95142064b0fb767aadb21764275be71e46.tar.gz external_llvm-a1508f95142064b0fb767aadb21764275be71e46.tar.bz2 |
Add testcase for PR5703
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/MSP430')
-rw-r--r-- | test/CodeGen/MSP430/2009-12-21-FrameAddr.ll | 13 |
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 0000000..b92477b --- /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) |