aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PIC16
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-21 16:48:20 +0000
committerChris Lattner <sabre@nondot.org>2009-07-21 16:48:20 +0000
commit99bd8bf8a24d572c41f16f215d4482f6f07ea1a7 (patch)
treeb858c8373b6449ce1a7b3fad0e42e319e5b4e3d6 /test/CodeGen/PIC16
parentdc47146a25f56badec845d7443b735c299aa1db6 (diff)
downloadexternal_llvm-99bd8bf8a24d572c41f16f215d4482f6f07ea1a7.zip
external_llvm-99bd8bf8a24d572c41f16f215d4482f6f07ea1a7.tar.gz
external_llvm-99bd8bf8a24d572c41f16f215d4482f6f07ea1a7.tar.bz2
add a testcase for the pic16 section handling stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PIC16')
-rw-r--r--test/CodeGen/PIC16/globals.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/PIC16/globals.ll b/test/CodeGen/PIC16/globals.ll
new file mode 100644
index 0000000..75a9d17
--- /dev/null
+++ b/test/CodeGen/PIC16/globals.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -march=pic16 | FileCheck %s
+
+@G1 = global i32 4712, section "Address=412"
+; CHECK: @G1.412.idata.0.# IDATA 412
+; CHECK: @G1 dl 4712
+
+@G2 = global i32 0, section "Address=412"
+; CHECK: @G2.412.udata.0.# UDATA 412
+; CHECK: @G2 RES 4
+
+@G3 = addrspace(1) constant i32 4712, section "Address=412"
+; CHECK: @G3.412.romdata.1.# ROMDATA 412
+; CHECK: @G3 rom_dl 4712
+
+