2015-07-31 12:12:04 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
2017-01-25 06:02:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
2015-07-31 12:12:04 +08:00
|
|
|
|
|
|
|
; FUNC-LABEL: {{^}}truncstore_arg_v16i32_to_v16i8:
|
2016-07-02 06:47:50 +08:00
|
|
|
; SI: buffer_store_dwordx4
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @truncstore_arg_v16i32_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i32> %in) {
|
2015-07-31 12:12:04 +08:00
|
|
|
%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:
|
2016-07-02 06:47:50 +08:00
|
|
|
; SI: buffer_store_dwordx4
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @truncstore_arg_v16i64_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i64> %in) {
|
2015-07-31 12:12:04 +08:00
|
|
|
%trunc = trunc <16 x i64> %in to <16 x i8>
|
|
|
|
store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
}
|