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 -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s 3 4 ; FUNC-LABEL: {{^}}truncstore_arg_v16i32_to_v16i8: 5 ; SI: buffer_store_byte 6 ; SI: buffer_store_byte 7 ; SI: buffer_store_byte 8 ; SI: buffer_store_byte 9 ; SI: buffer_store_byte 10 ; SI: buffer_store_byte 11 ; SI: buffer_store_byte 12 ; SI: buffer_store_byte 13 ; SI: buffer_store_byte 14 ; SI: buffer_store_byte 15 ; SI: buffer_store_byte 16 ; SI: buffer_store_byte 17 ; SI: buffer_store_byte 18 ; SI: buffer_store_byte 19 ; SI: buffer_store_byte 20 ; SI: buffer_store_byte 21 define void @truncstore_arg_v16i32_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i32> %in) { 22 %trunc = trunc <16 x i32> %in to <16 x i8> 23 store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out 24 ret void 25 } 26 27 ; FUNC-LABEL: {{^}}truncstore_arg_v16i64_to_v16i8: 28 ; SI: buffer_store_byte 29 ; SI: buffer_store_byte 30 ; SI: buffer_store_byte 31 ; SI: buffer_store_byte 32 ; SI: buffer_store_byte 33 ; SI: buffer_store_byte 34 ; SI: buffer_store_byte 35 ; SI: buffer_store_byte 36 ; SI: buffer_store_byte 37 ; SI: buffer_store_byte 38 ; SI: buffer_store_byte 39 ; SI: buffer_store_byte 40 ; SI: buffer_store_byte 41 ; SI: buffer_store_byte 42 ; SI: buffer_store_byte 43 ; SI: buffer_store_byte 44 define void @truncstore_arg_v16i64_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i64> %in) { 45 %trunc = trunc <16 x i64> %in to <16 x i8> 46 store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out 47 ret void 48 } 49