blob: 15c86d4e6b9d5155bf5b2a629acbfbb8421db499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
RWStructuredBuffer<float> buf;
//
// This test checks that we correctly diagnose passing too many operands to a spriv inst
//
void foo(const int constParam)
{
spirv_asm
{
// Make sure we diagnose the first offending operand
OpLoad
%a
%b
%c
%d
// CHECK: too-many-operands.slang([[#@LINE+1]]): warning {{.*}}: too many operands for OpLoad
%r : $$int = OpIAdd %r %r
};
}
|