[llvm-commits] [llvm] r76579 - /llvm/trunk/test/CodeGen/PIC16/globals.ll
Chris Lattner
sabre at nondot.org
Tue Jul 21 09:48:32 PDT 2009
Author: lattner
Date: Tue Jul 21 11:48:20 2009
New Revision: 76579
URL: http://llvm.org/viewvc/llvm-project?rev=76579&view=rev
Log:
add a testcase for the pic16 section handling stuff.
Added:
llvm/trunk/test/CodeGen/PIC16/globals.ll
Added: llvm/trunk/test/CodeGen/PIC16/globals.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PIC16/globals.ll?rev=76579&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PIC16/globals.ll (added)
+++ llvm/trunk/test/CodeGen/PIC16/globals.ll Tue Jul 21 11:48:20 2009
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -march=pic16 | FileCheck %s
+
+ at G1 = global i32 4712, section "Address=412"
+; CHECK: @G1.412.idata.0.# IDATA 412
+; CHECK: @G1 dl 4712
+
+ at G2 = global i32 0, section "Address=412"
+; CHECK: @G2.412.udata.0.# UDATA 412
+; CHECK: @G2 RES 4
+
+ at G3 = addrspace(1) constant i32 4712, section "Address=412"
+; CHECK: @G3.412.romdata.1.# ROMDATA 412
+; CHECK: @G3 rom_dl 4712
+
+
More information about the llvm-commits
mailing list