150
|
1 ; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
|
2 ; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
|
3
|
|
4 ; FUNC-LABEL: {{^}}truncstore_arg_v16i32_to_v16i8:
|
|
5 ; SI: buffer_store_dwordx4
|
252
|
6 define amdgpu_kernel void @truncstore_arg_v16i32_to_v16i8(ptr addrspace(1) %out, <16 x i32> %in) {
|
150
|
7 %trunc = trunc <16 x i32> %in to <16 x i8>
|
252
|
8 store <16 x i8> %trunc, ptr addrspace(1) %out
|
150
|
9 ret void
|
|
10 }
|
|
11
|
|
12 ; FUNC-LABEL: {{^}}truncstore_arg_v16i64_to_v16i8:
|
|
13 ; SI: buffer_store_dwordx4
|
252
|
14 define amdgpu_kernel void @truncstore_arg_v16i64_to_v16i8(ptr addrspace(1) %out, <16 x i64> %in) {
|
150
|
15 %trunc = trunc <16 x i64> %in to <16 x i8>
|
252
|
16 store <16 x i8> %trunc, ptr addrspace(1) %out
|
150
|
17 ret void
|
|
18 }
|