source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Assembler/global-addrspace-forwardref.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 482 bytes
Line 
1; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4; Make sure the address space of forward decls is preserved
5
6; CHECK: @a2 = global i8 addrspace(1)* @a
7; CHECK: @a = addrspace(1) global i8 0
8@a2 = global i8 addrspace(1)* @a
9@a = addrspace(1) global i8 0
10
11; Now test with global IDs instead of global names.
12
13; CHECK: @a3 = global i8 addrspace(1)* @0
14; CHECK: @0 = addrspace(1) global i8 0
15
16@a3 = global i8 addrspace(1)* @0
17@0 = addrspace(1) global i8 0
18
Note: See TracBrowser for help on using the repository browser.