blob: cf5c00e65b7d461e49c6b82e9484dc58ccbe96f9 [file] [log] [blame]
Matt Arsenaulte1ce3442015-07-31 04:12:04 +00001; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
3
4; FUNC-LABEL: {{^}}truncstore_arg_v16i32_to_v16i8:
Matt Arsenault327bb5a2016-07-01 22:47:50 +00005; SI: buffer_store_dwordx4
Matt Arsenaulte1ce3442015-07-31 04:12:04 +00006define void @truncstore_arg_v16i32_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i32> %in) {
7 %trunc = trunc <16 x i32> %in to <16 x i8>
8 store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out
9 ret void
10}
11
12; FUNC-LABEL: {{^}}truncstore_arg_v16i64_to_v16i8:
Matt Arsenault327bb5a2016-07-01 22:47:50 +000013; SI: buffer_store_dwordx4
Matt Arsenaulte1ce3442015-07-31 04:12:04 +000014define void @truncstore_arg_v16i64_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i64> %in) {
15 %trunc = trunc <16 x i64> %in to <16 x i8>
16 store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out
17 ret void
18}