Skip to content

Commit 3cded7b

Browse files
committed
Add remaining 3 ops
1 parent 6173bf1 commit 3cded7b

4 files changed

Lines changed: 9 additions & 34 deletions

File tree

tools/clang/test/SemaHLSL/hlsl/linalg/builtins/matrixaccumulatetomemory/unavailable_pre_sm610.hlsl

Lines changed: 0 additions & 11 deletions
This file was deleted.

tools/clang/test/SemaHLSL/hlsl/linalg/builtins/matrixloadfrommemory/unavailable_pre_sm610.hlsl

Lines changed: 0 additions & 11 deletions
This file was deleted.

tools/clang/test/SemaHLSL/hlsl/linalg/builtins/matrixstoretomemory/unavailable_pre_sm610.hlsl

Lines changed: 0 additions & 11 deletions
This file was deleted.

tools/clang/test/SemaHLSL/hlsl/linalg/builtins/unavailable_pre_sm610.hlsl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %dxc -T cs_6_9 -E main %s -verify
22

33
RWByteAddressBuffer buf;
4+
groupshared float SharedArr[64];
45

56
[numthreads(4,1,1)]
67
void main() {
@@ -59,5 +60,12 @@ void main() {
5960
// expected-error@+1{{intrinsic __builtin_LinAlg_MatrixVectorMultiplyAdd potentially used by ''main'' requires shader model 6.10 or greater}}
6061
__builtin_LinAlg_MatrixVectorMultiplyAdd(result, mat, vec1, 1, vec2, 0);
6162

62-
// FIXME: add remaining 3 ops
63+
// expected-error@+1{{intrinsic __builtin_LinAlg_MatrixAccumulateToMemory potentially used by ''main'' requires shader model 6.10 or greater}}
64+
__builtin_LinAlg_MatrixAccumulateToMemory(mat, SharedArr, 0, 0, 0);
65+
66+
// expected-error@+1{{intrinsic __builtin_LinAlg_MatrixLoadFromMemory potentially used by ''main'' requires shader model 6.10 or greater}}
67+
__builtin_LinAlg_MatrixLoadFromMemory(mat, SharedArr, 0, 0, 0);
68+
69+
// expected-error@+1{{intrinsic __builtin_LinAlg_MatrixStoreToMemory potentially used by ''main'' requires shader model 6.10 or greater}}
70+
__builtin_LinAlg_MatrixStoreToMemory(mat, SharedArr, 0, 0, 0);
6371
}

0 commit comments

Comments
 (0)