1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
4 ; CHECK: @v1 = global i32 0
6 @v2 = global [1 x i32] zeroinitializer
7 ; CHECK: @v2 = global [1 x i32] zeroinitializer
9 @v3 = global [2 x i16] zeroinitializer
10 ; CHECK: @v3 = global [2 x i16] zeroinitializer
12 @a1 = alias i16, bitcast (i32* @v1 to i16*)
13 ; CHECK: @a1 = alias i16, bitcast (i32* @v1 to i16*)
15 @a2 = alias i32, bitcast([1 x i32]* @v2 to i32*)
16 ; CHECK: @a2 = alias i32, getelementptr inbounds ([1 x i32], [1 x i32]* @v2, i32 0, i32 0)
18 @a3 = alias i32, addrspacecast (i32* @v1 to i32 addrspace(2)*)
19 ; CHECK: @a3 = alias i32, addrspacecast (i32* @v1 to i32 addrspace(2)*)
21 @a4 = alias i16, bitcast (i32* @v1 to i16*)
22 ; CHECK: @a4 = alias i16, bitcast (i32* @v1 to i16*)
24 @a5 = thread_local(localdynamic) alias i32, i32* @v1
25 ; CHECK: @a5 = thread_local(localdynamic) alias i32, i32* @v1
27 @a6 = alias i16, getelementptr ([2 x i16], [2 x i16]* @v3, i32 1, i32 1)
28 ; CHECK: @a6 = alias i16, getelementptr ([2 x i16], [2 x i16]* @v3, i32 1, i32 1)