1; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=ASM %s 2 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 8 9@internal_readonly = internal unnamed_addr addrspace(2) constant i32 0 10@external_readonly = unnamed_addr addrspace(2) constant i32 0 11 12define void @test() { 13 ret void 14} 15 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 22 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 28 29; ASM: .type internal_global_program,@object 30; ASM: .local internal_global_program 31; ASM: .comm internal_global_program,4,2 32 33; ASM: .type common_global_program,@object 34; ASM: .comm common_global_program,4,2 35 36; ASM: external_global_program: 37; ASM: .long 0 38; ASM: .size external_global_program, 4 39 40; ASM: .type internal_readonly,@object 41; ASM: .text 42; ASM: internal_readonly: 43; ASM: .long 0 44; ASM: .size internal_readonly, 4 45 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 51