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
17 lines
729 B
LLVM
17 lines
729 B
LLVM
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=GCN %s
|
|
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=fiji -mattr=-flat-for-global | FileCheck --check-prefix=GCN %s
|
|
|
|
; If flat_store_dword and flat_load_dword use different registers for the data
|
|
; operand, this test is not broken. It just means it is no longer testing
|
|
; for the original bug.
|
|
|
|
; GCN: {{^}}test:
|
|
; XGCN: flat_store_dword v[{{[0-9]+:[0-9]+}}], [[DATA:v[0-9]+]]
|
|
; XGCN: s_waitcnt vmcnt(0) lgkmcnt(0)
|
|
; XGCN: flat_load_dword [[DATA]], v[{{[0-9]+:[0-9]+}}]
|
|
define amdgpu_kernel void @test(i32 addrspace(1)* %out, i32 %in) {
|
|
store volatile i32 0, i32 addrspace(1)* %out
|
|
%val = load volatile i32, i32 addrspace(1)* %out
|
|
ret void
|
|
}
|