22 lines · plain
1; We use llc for this test so that we don't abort after the first error.2; RUN: not llc %s -o /dev/null 2>&1 | FileCheck %s3 4target triple = "dxil-pc-shadermodel6.6-compute"5 6; CHECK: error:7; CHECK-SAME: in function storetoomany8; CHECK-SAME: Buffer store data must have at most 4 elements9define void @storetoomany(<5 x float> %data, i32 %index) "hlsl.export" {10 %buffer = call target("dx.TypedBuffer", <4 x float>, 1, 0, 0)11 @llvm.dx.resource.handlefrombinding.tdx.TypedBuffer_v4f32_1_0_0(12 i32 0, i32 0, i32 1, i32 0, ptr null)13 14 call void @llvm.dx.resource.store.typedbuffer.tdx.TypedBuffer_v4f32_1_0_0t.v5f32(15 target("dx.TypedBuffer", <4 x float>, 1, 0, 0) %buffer,16 i32 %index, <5 x float> %data)17 18 ret void19}20 21declare void @llvm.dx.resource.store.typedbuffer.tdx.TypedBuffer_v4f32_1_0_0t.v5f32(target("dx.TypedBuffer", <4 x float>, 1, 0, 0), i32, <5 x float>)22