1 ; RUN: llc -mtriple=amdgcn -mcpu=fiji -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefix=GCN %s
2 ; RUN: llc -mtriple=amdgcn -mcpu=fiji -O0 -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefix=GCN %s
4 ; GCN-LABEL: {{^}}scalar_to_vector_i16:
5 ; GCN: v_mov_b32_e32 [[V:v[0-9]+]], 42
6 ; GCN: buffer_store_short [[V]],
7 define void @scalar_to_vector_i16() {
8 %tmp = load <2 x i16>, ptr addrspace(5) undef
9 %tmp1 = insertelement <2 x i16> %tmp, i16 42, i64 0
10 store <2 x i16> %tmp1, ptr addrspace(5) undef
14 ; GCN-LABEL: {{^}}scalar_to_vector_f16:
15 ; GCN: v_mov_b32_e32 [[V:v[0-9]+]], 0x3c00
16 ; GCN: buffer_store_short [[V]],
17 define void @scalar_to_vector_f16() {
18 %tmp = load <2 x half>, ptr addrspace(5) undef
19 %tmp1 = insertelement <2 x half> %tmp, half 1.0, i64 0
20 store <2 x half> %tmp1, ptr addrspace(5) undef