Mercurial > hg > CbC > CbC_llvm
view llvm/test/CodeGen/AMDGPU/hsa-func-align.ll @ 206:f17a3b42b08b
Added tag before-12 for changeset b7591485f4cd
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 07 Jun 2021 21:25:57 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
line wrap: on
line source
; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri < %s | FileCheck -check-prefix=HSA %s ; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=obj < %s | llvm-readobj --symbols -S --sd | FileCheck -check-prefix=ELF %s ; ELF: Section { ; ELF: Name: .text ; ELF: SHF_ALLOC (0x2) ; ELF: SHF_EXECINSTR (0x4) ; ELF: AddressAlignment: 32 ; ELF: } ; HSA: .globl simple_align16 ; HSA: .p2align 5 define void @simple_align16(i32 addrspace(1)* addrspace(4)* %ptr.out) align 32 { entry: %out = load i32 addrspace(1)*, i32 addrspace(1)* addrspace(4)* %ptr.out store i32 0, i32 addrspace(1)* %out ret void }