diff options
Diffstat (limited to 'test/CodeGen/PIC16/globals.ll')
-rw-r--r-- | test/CodeGen/PIC16/globals.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/PIC16/globals.ll b/test/CodeGen/PIC16/globals.ll new file mode 100644 index 0000000..432c291 --- /dev/null +++ b/test/CodeGen/PIC16/globals.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -march=pic16 | FileCheck %s + +@G1 = global i32 4712, section "Address=412" +; CHECK: @G1.412..user_section.# IDATA 412 +; CHECK: @G1 +; CHECK: dl 4712 + +@G2 = global i32 0, section "Address=412" +; CHECK: @G2.412..user_section.# UDATA 412 +; CHECK: @G2 RES 4 + +@G3 = addrspace(1) constant i32 4712, section "Address=412" +; CHECK: @G3.412..user_section.# ROMDATA 412 +; CHECK: @G3 +; CHECK: rom_dl 4712 + + |