mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-23 22:06:19 +00:00

Currently the default C calling convention functions are treated the same as compute kernels. Make this explicit so the default calling convention can be changed to a non-kernel. Converted with perl -pi -e 's/define void/define amdgpu_kernel void/' on the relevant test directories (and undoing in one place that actually wanted a non-kernel). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298444 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
649 B
LLVM
21 lines
649 B
LLVM
; RUN: llc -march=amdgcn -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s
|
|
; RUN: llc -march=r600 -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s
|
|
|
|
; Should not crash when the processor is not recognized and the
|
|
; wavefront size feature not set.
|
|
|
|
; Should also not have fragments of r600 and gcn isa mixed.
|
|
|
|
; ERROR: 'unknown' is not a recognized processor for this target (ignoring processor)
|
|
|
|
; GCN-NOT: MOV
|
|
; GCN: buffer_store_dword
|
|
; GCN: ScratchSize: 8{{$}}
|
|
|
|
; R600: MOV
|
|
define amdgpu_kernel void @foo() {
|
|
%alloca = alloca i32, align 4
|
|
store volatile i32 0, i32* %alloca
|
|
ret void
|
|
}
|