1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/test/CodeGen/AMDGPU/r600.func-alignment.ll
Jan Vesely 0ce62c1f6a AMDGPU/R600: Make sure functions are cacheline aligned
v2: use "ensureAlignment"
    make functions cache line aligned
Fixes GPU hangs since r333219:
"AMDGPU: Split R600 AsmPrinter code into its own class"

Differential Revision: https://reviews.llvm.org/D47516

llvm-svn: 333622
2018-05-31 04:08:08 +00:00

14 lines
336 B
LLVM

; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
; RUN: llc < %s -march=r600 -mcpu=rs880 | FileCheck %s
; CHECK: .globl test
; Functions need to be cacheline (256B) aligned to prevent GPU hangs
; CHECK: .p2align 8
; CHECK: {{^}}test:
; CHECK: CF_END
define amdgpu_ps void @test(<4 x float> inreg %reg0) {
entry:
ret void
}