1- // RUN: not %dxc -T lib_6_9 -enable-16bit-types %s 2>&1 | FileCheck %s
1+ // RUN: %dxc -I %hlsl_headers -T lib_6_9 -enable-16bit-types %s -verify
2+
3+ #include <dx/linalg.h>
24
35RWByteAddressBuffer RWBuf;
46
@@ -10,8 +12,8 @@ export void Test4(vector<half, 128> Input1, vector<half, 64> Input2) {
1012 matrix = {RWBuf, 0 , 0 };
1113
1214 // clang-format off
13- // CHECK: error: no matching function for call to 'OuterProductAccumulate'
14- // CHECK: note: candidate template ignored: could not match 0 against 1
15+ // expected- error@+5{{ no matching function for call to 'OuterProductAccumulate'}}
16+ // expected- note@dx/linalg.h:157{{ candidate template ignored: could not match 0 against 1}}
1517 // __builtin_OuterProductAccumulate(Input1, Input2, RWBuf, 0, DATA_TYPE_FLOAT16, MATRIX_LAYOUT_OUTER_PRODUCT_OPTIMAL, 0);
1618 // clang-format on
1719
@@ -26,8 +28,8 @@ export void Test5(vector<int, 128> Input1, vector<uint, 128> Input2) {
2628 matrix = {RWBuf, 0 , 0 };
2729
2830 // clang-format off
29- // CHECK: error: no matching function for call to 'OuterProductAccumulate'
30- // CHECK: note: candidate template ignored: could not match 0 against 1
31+ // expected- error@+5{{ no matching function for call to 'OuterProductAccumulate'}}
32+ // expected- note@dx/linalg.h:157{{ candidate template ignored: could not match 0 against 1}}
3133 // __builtin_OuterProductAccumulate(Input1, Input2, RWBuf, 0, DATA_TYPE_FLOAT16, MATRIX_LAYOUT_OUTER_PRODUCT_OPTIMAL, 0);
3234 // clang-format on
3335
@@ -42,8 +44,8 @@ export void Test4(vector<half, 64> Input1, vector<half, 64> Input2) {
4244 matrix = {RWBuf, 0 , 0 };
4345
4446 // clang-format off
45- // CHECK: error: no matching function for call to 'OuterProductAccumulate'
46- // CHECK: note: candidate template ignored: could not match 0 against 1
47+ // expected- error@+5{{ no matching function for call to 'OuterProductAccumulate'}}
48+ // expected- note@dx/linalg.h:157{{ candidate template ignored: deduced conflicting types for parameter 'ElTy' ('int' vs. 'unsigned int')}}
4749 // __builtin_OuterProductAccumulate(Input1, Input2, RWBuf, 0, DATA_TYPE_FLOAT16, MATRIX_LAYOUT_OUTER_PRODUCT_OPTIMAL, 0);
4850 // clang-format on
4951
0 commit comments