mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
b2d3b0af04
We use both -long-option and --long-option in tests. Switch to --long-option for consistency. In the "llvm-readelf" mode, -long-option is discouraged as it conflicts with grouped short options and it is not accepted by GNU readelf. While updating the tests, change llvm-readobj -s to llvm-readobj -S to reduce confusion ("s" is --section-headers in llvm-readobj but --symbols in llvm-readelf). llvm-svn: 359649
19 lines
604 B
LLVM
19 lines
604 B
LLVM
; 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
|
|
}
|