[ARM] Fixup the creation of VPT blocks
[llvm-core.git] / test / CodeGen / AMDGPU / hsa-globals.ll
blob09c4b5f68a0b52fe090c9b446dd31bbf39b424c5
1 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=ASM %s
3 @linkonce_odr_global_program = linkonce_odr addrspace(1) global i32 0
4 @linkonce_global_program = linkonce addrspace(1) global i32 0
5 @internal_global_program = internal addrspace(1) global i32 0
6 @common_global_program = common addrspace(1) global i32 0
7 @external_global_program = addrspace(1) global i32 0
9 @internal_readonly = internal unnamed_addr addrspace(4) constant i32 0
10 @external_readonly = unnamed_addr addrspace(4) constant i32 0
12 define amdgpu_kernel void @test() {
13   ret void
16 ; ASM: .type linkonce_odr_global_program,@object
17 ; ASM: .section .bss,#alloc,#write
18 ; ASM: .weak linkonce_odr_global_program
19 ; ASM: linkonce_odr_global_program:
20 ; ASM: .long 0
21 ; ASM: .size linkonce_odr_global_program, 4
23 ; ASM: .type linkonce_global_program,@object
24 ; ASM: .weak linkonce_global_program
25 ; ASM: linkonce_global_program:
26 ; ASM: .long 0
27 ; ASM: .size linkonce_global_program, 4
29 ; ASM: .type internal_global_program,@object
30 ; ASM: .local internal_global_program
31 ; ASM: .comm internal_global_program,4,2
33 ; ASM: .type common_global_program,@object
34 ; ASM: .comm common_global_program,4,2
36 ; ASM: external_global_program:
37 ; ASM: .long 0
38 ; ASM: .size external_global_program, 4
40 ; ASM: .type internal_readonly,@object
41 ; ASM: .section .rodata.cst4,"aM",@progbits,4
42 ; ASM: internal_readonly:
43 ; ASM: .long 0
44 ; ASM: .size internal_readonly, 4
46 ; ASM: .type external_readonly,@object
47 ; ASM: .globl external_readonly
48 ; ASM: external_readonly:
49 ; ASM: .long 0
50 ; ASM: .size external_readonly, 4