MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TEST

Function TEST

test/fuzz/transformation_wrap_vector_synonym_test.cpp:26–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace {
25
26TEST(TransformationWrapVectorSynonym, BasicTest) {
27 std::string shader = R"(
28 OpCapability Shader
29 %1 = OpExtInstImport "GLSL.std.450"
30 OpMemoryModel Logical GLSL450
31 OpEntryPoint Fragment %4 "main" %97
32 OpExecutionMode %4 OriginUpperLeft
33 OpSource ESSL 310
34 OpName %4 "main"
35 %2 = OpTypeVoid
36 %3 = OpTypeFunction %2
37 %6 = OpTypeInt 32 1
38 %7 = OpTypePointer Function %6
39 %9 = OpConstant %6 10
40 %11 = OpConstant %6 -5
41 %12 = OpTypeVector %6 2
42 %13 = OpTypePointer Function %12
43 %18 = OpTypeInt 32 0
44 %19 = OpTypePointer Function %18
45 %21 = OpConstant %18 8
46 %23 = OpConstant %18 2
47 %24 = OpTypeVector %18 3
48 %25 = OpTypePointer Function %24
49 %31 = OpTypeFloat 32
50 %32 = OpTypePointer Function %31
51 %34 = OpConstant %31 3.29999995
52 %36 = OpConstant %31 1.10000002
53 %37 = OpTypeVector %31 4
54 %38 = OpTypePointer Function %37
55 %96 = OpTypePointer Input %31
56 %97 = OpVariable %96 Input
57 %4 = OpFunction %2 None %3
58 %5 = OpLabel
59 %8 = OpVariable %7 Function
60 %10 = OpVariable %7 Function
61 %14 = OpVariable %13 Function
62 %20 = OpVariable %19 Function
63 %22 = OpVariable %19 Function
64 %26 = OpVariable %25 Function
65 %33 = OpVariable %32 Function
66 %35 = OpVariable %32 Function
67 %39 = OpVariable %38 Function
68 %47 = OpVariable %7 Function
69 %51 = OpVariable %7 Function
70 %55 = OpVariable %7 Function
71 %59 = OpVariable %7 Function
72 %63 = OpVariable %19 Function
73 %67 = OpVariable %19 Function
74 %71 = OpVariable %19 Function
75 %75 = OpVariable %19 Function
76 %79 = OpVariable %32 Function
77 %83 = OpVariable %32 Function
78 %87 = OpVariable %32 Function
79 %91 = OpVariable %32 Function
80 OpStore %8 %9
81 OpStore %10 %11
82 %15 = OpLoad %6 %8
83 %16 = OpLoad %6 %10

Callers

nothing calls this directly

Calls 12

IsValidAndWellFormedFunction · 0.85
MakeDataDescriptorFunction · 0.85
ApplyAndCheckFreshIdsFunction · 0.85
IsEqualFunction · 0.85
getMethod · 0.80
GetFactManagerMethod · 0.80
AddFactDataSynonymMethod · 0.80
BuildModuleFunction · 0.50
IdIsIrrelevantMethod · 0.45
IsApplicableMethod · 0.45
IsSynonymousMethod · 0.45

Tested by

no test coverage detected