David Neto | d1a026e | 2021-07-30 16:03:06 +0000 | [diff] [blame] | 1 | ; Test: SpvParserTest_EmitStatement_ScalarCallNoParamsUsedTwice.spvasm |
| 2 | ; SPIR-V |
| 3 | ; Version: 1.0 |
| 4 | ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 5 | ; Bound: 101 |
| 6 | ; Schema: 0 |
| 7 | OpCapability Shader |
| 8 | OpMemoryModel Logical Simple |
| 9 | OpEntryPoint Fragment %100 "x_100" |
| 10 | OpExecutionMode %100 OriginUpperLeft |
| 11 | %void = OpTypeVoid |
| 12 | %3 = OpTypeFunction %void |
| 13 | %uint = OpTypeInt 32 0 |
| 14 | %5 = OpTypeFunction %uint |
| 15 | %uint_42 = OpConstant %uint 42 |
| 16 | %_ptr_Function_uint = OpTypePointer Function %uint |
| 17 | %50 = OpFunction %uint None %5 |
| 18 | %8 = OpLabel |
| 19 | OpReturnValue %uint_42 |
| 20 | OpFunctionEnd |
| 21 | %100 = OpFunction %void None %3 |
| 22 | %9 = OpLabel |
| 23 | %10 = OpVariable %_ptr_Function_uint Function |
| 24 | %1 = OpFunctionCall %uint %50 |
| 25 | OpStore %10 %1 |
| 26 | OpStore %10 %1 |
| 27 | OpReturn |
| 28 | OpFunctionEnd |
| 29 | |