1 ; RUN: not spirv-sim --function=simple --wave=a --expects=2 -i %s 2>&1 | FileCheck %s --check-prefixes=CHECK-WAVE
2 ; RUN: not spirv-sim --function=simple --wave=1 --expects=a -i %s 2>&1 | FileCheck %s --check-prefixes=CHECK-EXPECT
3 ; RUN: not spirv-sim --function=simple --wave=1 --expects=1, -i %s 2>&1 | FileCheck %s --check-prefixes=CHECK-EXPECT
4 ; RUN: not spirv-sim --function=simple --wave=2 --expects=1 -i %s 2>&1 | FileCheck %s --check-prefixes=CHECK-SIZE
5 ; RUN: not spirv-sim --function=foo --wave=1 --expects=1 -i %s 2>&1 | FileCheck %s --check-prefixes=CHECK-NAME
7 ; CHECK-WAVE: Invalid format for --wave/-w flag.
9 ; CHECK-EXPECT: Invalid format for --expects/-e flag.
11 ; CHECK-SIZE: Wave size != expected result array size
13 ; CHECK-NAME: 'foo' function not found. Known functions are:
14 ; CHECK-NAME-NEXT: - main
15 ; CHECK-NAME-NEXT: - simple
16 ; CHECK-NANE-NOT-NEXT: -
18 OpMemoryModel Logical GLSL450
19 OpEntryPoint GLCompute %main "main"
20 OpExecutionMode %main LocalSize 1 1 1
22 OpName %simple "simple"
25 %int_2 = OpConstant %int 2
27 %main_type = OpTypeFunction %void
28 %simple_type = OpTypeFunction %int
29 %main = OpFunction %void None %main_type
33 %simple = OpFunction %int None %simple_type