mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
dd9ab77318
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). llvm-svn: 298444
19 lines
850 B
LLVM
19 lines
850 B
LLVM
; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
|
|
|
; FUNC-LABEL: {{^}}truncstore_arg_v16i32_to_v16i8:
|
|
; SI: buffer_store_dwordx4
|
|
define amdgpu_kernel void @truncstore_arg_v16i32_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i32> %in) {
|
|
%trunc = trunc <16 x i32> %in to <16 x i8>
|
|
store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out
|
|
ret void
|
|
}
|
|
|
|
; FUNC-LABEL: {{^}}truncstore_arg_v16i64_to_v16i8:
|
|
; SI: buffer_store_dwordx4
|
|
define amdgpu_kernel void @truncstore_arg_v16i64_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i64> %in) {
|
|
%trunc = trunc <16 x i64> %in to <16 x i8>
|
|
store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out
|
|
ret void
|
|
}
|