Debian Codegraph @

test/diff/diff_files/string_in_ext_inst_src.spvasm

raw
1 ;; Tests a diff where the an OpString is used only as parameter of OpExtInst.
2 OpCapability Shader
3 OpExtension "SPV_KHR_non_semantic_info"
4 %1 = OpExtInstImport "GLSL.std.450"
5 %12 = OpExtInstImport "NonSemantic.DebugPrintf"
6 OpMemoryModel Logical GLSL450
7 OpEntryPoint GLCompute %main "main"
8 OpExecutionMode %main LocalSize 1 1 1
9 %10 = OpString "unsigned == %u"
10 OpSource GLSL 450
11 OpSourceExtension "GL_EXT_debug_printf"
12 OpName %main "main"
13 OpName %foo "foo"
14 %void = OpTypeVoid
15 %3 = OpTypeFunction %void
16 %uint = OpTypeInt 32 0
17 %_ptr_Function_uint = OpTypePointer Function %uint
18 %uint_127 = OpConstant %uint 127
19 %main = OpFunction %void None %3
20 %5 = OpLabel
21 %foo = OpVariable %_ptr_Function_uint Function
22 OpStore %foo %uint_127
23 %11 = OpLoad %uint %foo
24 %13 = OpExtInst %void %12 1 %10 %11
25 OpReturn
26 OpFunctionEnd