Test case to check that separate section is created for a global variable specified...
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 27 Jul 2009 16:20:41 +0000 (16:20 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 27 Jul 2009 16:20:41 +0000 (16:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77195 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PIC16/global-in-user-section.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PIC16/global-in-user-section.ll b/test/CodeGen/PIC16/global-in-user-section.ll
new file mode 100644 (file)
index 0000000..02fd068
--- /dev/null
@@ -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