mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333622 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
336 B
LLVM
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
|
|
}
|