Skip to content

Commit 3fede1b

Browse files
committed
add SM 6.3 error test
1 parent 10739a3 commit 3fede1b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-compute %s 2>&1 | FileCheck %s
2+
3+
; CHECK: in function f
4+
; CHECK-SAME: Cannot create Dot2AddHalf operation: No valid overloads for DXIL version 1.3
5+
6+
define noundef float @f(<2 x half> noundef %a, <2 x half> noundef %b, float %acc) {
7+
entry:
8+
%ax = extractelement <2 x half> %a, i32 0
9+
%ay = extractelement <2 x half> %a, i32 1
10+
%bx = extractelement <2 x half> %b, i32 0
11+
%by = extractelement <2 x half> %b, i32 1
12+
13+
%ret = call float @llvm.dx.dot2add(float %acc, half %ax, half %ay, half %bx, half %by)
14+
ret float %ret
15+
}

0 commit comments

Comments
 (0)