brintos

brintos / llvm-project-archived public Read only

0
0
Text · 837 B · 808e60f Raw
23 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=fiji < %s | FileCheck -enable-var-scope -check-prefix=GCN %s2; RUN: llc -mtriple=amdgcn -mcpu=fiji -O0 < %s | FileCheck -enable-var-scope -check-prefix=GCN %s3 4; GCN-LABEL: {{^}}scalar_to_vector_i16:5; GCN:   v_mov_b32_e32 [[V:v[0-9]+]], 426; GCN: buffer_store_short [[V]],7define void @scalar_to_vector_i16() {8  %tmp = load <2 x i16>, ptr addrspace(5) poison9  %tmp1 = insertelement <2 x i16> %tmp, i16 42, i64 010  store <2 x i16> %tmp1, ptr addrspace(5) poison11  ret void12}13 14; GCN-LABEL: {{^}}scalar_to_vector_f16:15; GCN:   v_mov_b32_e32 [[V:v[0-9]+]], 0x3c0016; GCN: buffer_store_short [[V]],17define void @scalar_to_vector_f16() {18  %tmp = load <2 x half>, ptr addrspace(5) poison19  %tmp1 = insertelement <2 x half> %tmp, half 1.0, i64 020  store <2 x half> %tmp1, ptr addrspace(5) poison21  ret void22}23