brintos

brintos / llvm-project-archived public Read only

0
0
Text · 798 B · 1d00ee9 Raw
18 lines · plain
1; RUN: llc -mtriple=amdgcn < %s | FileCheck %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck %s3; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck %s4 5; Checks that we don't crash when code produces a build_vector with two undef operands.6 7; CHECK: {{^}}buildvector_undefs:8define amdgpu_kernel void @buildvector_undefs(<2 x i16> %in) {9entry:10  %i0 = call <16 x i16> @llvm.vector.insert.v16i16.v2i16(<16 x i16> poison, <2 x i16> %in, i64 0)11  %i1 = call <16 x i16> @llvm.vector.insert.v16i16.v2i16(<16 x i16> %i0, <2 x i16> zeroinitializer, i64 2)12  store <16 x i16> %i1, ptr addrspace(1) null, align 3213  ret void14}15 16declare <2 x i16> @llvm.vector.extract.v2i16.v16i16(<16 x i16>, i64 immarg)17declare <16 x i16> @llvm.vector.insert.v16i16.v2i16(<16 x i16>, <2 x i16>, i64 immarg)18