summaryrefslogtreecommitdiffstats
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
commita77a182b04a5f3ee15eacf50883dd61d549f1634 (patch)
treec6b5c6192232373a5a6c5f30d1880da94fc4f699
parent9c7f808201ed3d7cafe7822dcc7b993827ae9feb (diff)
downloadbcm5719-llvm-a77a182b04a5f3ee15eacf50883dd61d549f1634.tar.gz
bcm5719-llvm-a77a182b04a5f3ee15eacf50883dd61d549f1634.zip
Test case to check that separate section is created for a global variable specified with section attribute.
llvm-svn: 77195
-rw-r--r--llvm/test/CodeGen/PIC16/global-in-user-section.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PIC16/global-in-user-section.ll b/llvm/test/CodeGen/PIC16/global-in-user-section.ll
new file mode 100644
index 00000000000..02fd06849c3
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud