aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PIC16
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-27 16:20:41 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-27 16:20:41 +0000
commitc3ee7960d9485d20b790091def10c64ee7e75554 (patch)
tree4b6fcbe0a6e2b5b2739c5e53c17ecb247fa780f2 /test/CodeGen/PIC16
parent59858cf7926702596cf708daf21aeaf5b6feedf8 (diff)
downloadexternal_llvm-c3ee7960d9485d20b790091def10c64ee7e75554.zip
external_llvm-c3ee7960d9485d20b790091def10c64ee7e75554.tar.gz
external_llvm-c3ee7960d9485d20b790091def10c64ee7e75554.tar.bz2
Test case to check that separate section is created for a global variable specified with section attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PIC16')
-rw-r--r--test/CodeGen/PIC16/global-in-user-section.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/PIC16/global-in-user-section.ll b/test/CodeGen/PIC16/global-in-user-section.ll
new file mode 100644
index 0000000..02fd068
--- /dev/null
+++ b/test/CodeGen/PIC16/global-in-user-section.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | llc -march=pic16 | FileCheck %s
+
+@G1 = common global i16 0, section "usersection", align 1
+; CHECK: usersection UDATA
+; CHECK: @G1 RES 2