2017-04-20 01:42:39 +08:00
|
|
|
; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri < %s | FileCheck -check-prefix=HSA %s
|
2020-07-20 15:39:14 +08:00
|
|
|
; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=obj < %s | llvm-readobj --symbols -S --sd - | FileCheck -check-prefix=ELF %s
|
2017-04-20 01:42:39 +08:00
|
|
|
|
|
|
|
; ELF: Section {
|
|
|
|
; ELF: Name: .text
|
|
|
|
; ELF: SHF_ALLOC (0x2)
|
|
|
|
; ELF: SHF_EXECINSTR (0x4)
|
|
|
|
; ELF: AddressAlignment: 32
|
|
|
|
; ELF: }
|
|
|
|
|
|
|
|
; HSA: .globl simple_align16
|
|
|
|
; HSA: .p2align 5
|
2018-02-14 02:00:25 +08:00
|
|
|
define void @simple_align16(i32 addrspace(1)* addrspace(4)* %ptr.out) align 32 {
|
2017-04-20 01:42:39 +08:00
|
|
|
entry:
|
2018-02-14 02:00:25 +08:00
|
|
|
%out = load i32 addrspace(1)*, i32 addrspace(1)* addrspace(4)* %ptr.out
|
2017-04-20 01:42:39 +08:00
|
|
|
store i32 0, i32 addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
}
|