brintos

brintos / llvm-project-archived public Read only

0
0
Text · 581 B · 18b4fc5 Raw
14 lines · plain
1; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.4-compute %s | FileCheck %s2 3define noundef float @dot2add_simple(<2 x half> noundef %a, <2 x half> noundef %b, float %acc) {4entry:5  %ax = extractelement <2 x half> %a, i32 06  %ay = extractelement <2 x half> %a, i32 17  %bx = extractelement <2 x half> %b, i32 08  %by = extractelement <2 x half> %b, i32 19 10; CHECK: call float @dx.op.dot2AddHalf.f32(i32 162, float %acc, half %ax, half %ay, half %bx, half %by)11  %ret = call float @llvm.dx.dot2add(float %acc, half %ax, half %ay, half %bx, half %by)12  ret float %ret13}14