1; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri < %s | FileCheck -check-prefix=HSA %s
2; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=obj < %s | llvm-readobj --symbols -S --sd - | FileCheck -check-prefix=ELF %s
3
4; ELF: Section {
5; ELF: Name: .text
6; ELF: SHF_ALLOC (0x2)
7; ELF: SHF_EXECINSTR (0x4)
8; ELF: AddressAlignment: 32
9; ELF: }
10
11; HSA: .globl simple_align16
12; HSA: .p2align 5
13define void @simple_align16(i32 addrspace(1)* addrspace(4)* %ptr.out) align 32 {
14entry:
15  %out = load i32 addrspace(1)*, i32 addrspace(1)* addrspace(4)* %ptr.out
16  store i32 0, i32 addrspace(1)* %out
17  ret void
18}
19