2015-12-03 03:47:57 +08:00
|
|
|
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=ASM %s
|
|
|
|
|
2016-04-06 00:00:58 +08:00
|
|
|
@linkonce_odr_global_program = linkonce_odr addrspace(1) global i32 0
|
|
|
|
@linkonce_global_program = linkonce addrspace(1) global i32 0
|
2015-12-03 03:47:57 +08:00
|
|
|
@internal_global_program = internal addrspace(1) global i32 0
|
|
|
|
@common_global_program = common addrspace(1) global i32 0
|
|
|
|
@external_global_program = addrspace(1) global i32 0
|
|
|
|
|
2015-12-03 11:34:32 +08:00
|
|
|
@internal_readonly = internal unnamed_addr addrspace(2) constant i32 0
|
|
|
|
@external_readonly = unnamed_addr addrspace(2) constant i32 0
|
|
|
|
|
2015-12-03 03:47:57 +08:00
|
|
|
define void @test() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .type linkonce_odr_global_program,@object
|
|
|
|
; ASM: .section .bss,#alloc,#write
|
|
|
|
; ASM: .weak linkonce_odr_global_program
|
2016-04-06 00:00:58 +08:00
|
|
|
; ASM: linkonce_odr_global_program:
|
|
|
|
; ASM: .long 0
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .size linkonce_odr_global_program, 4
|
2016-04-06 00:00:58 +08:00
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .type linkonce_global_program,@object
|
|
|
|
; ASM: .weak linkonce_global_program
|
2016-04-06 00:00:58 +08:00
|
|
|
; ASM: linkonce_global_program:
|
|
|
|
; ASM: .long 0
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .size linkonce_global_program, 4
|
2016-04-06 00:00:58 +08:00
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .type internal_global_program,@object
|
|
|
|
; ASM: .local internal_global_program
|
|
|
|
; ASM: .comm internal_global_program,4,2
|
2015-12-03 03:47:57 +08:00
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .type common_global_program,@object
|
|
|
|
; ASM: .comm common_global_program,4,2
|
2015-12-03 03:47:57 +08:00
|
|
|
|
|
|
|
; ASM: external_global_program:
|
|
|
|
; ASM: .long 0
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .size external_global_program, 4
|
2015-12-03 03:47:57 +08:00
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .type internal_readonly,@object
|
2016-10-21 02:12:38 +08:00
|
|
|
; ASM: .section .rodata.cst4,"aM",@progbits,4
|
2015-12-03 11:34:32 +08:00
|
|
|
; ASM: internal_readonly:
|
|
|
|
; ASM: .long 0
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .size internal_readonly, 4
|
2015-12-03 11:34:32 +08:00
|
|
|
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .type external_readonly,@object
|
|
|
|
; ASM: .globl external_readonly
|
2015-12-03 11:34:32 +08:00
|
|
|
; ASM: external_readonly:
|
|
|
|
; ASM: .long 0
|
2016-05-06 01:03:33 +08:00
|
|
|
; ASM: .size external_readonly, 4
|