David Neto | d1a026e | 2021-07-30 16:03:06 +0000 | [diff] [blame] | 1 | ; Test: SpvParserMemoryTest_EmitStatement_UseLoadedScalarTwice.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 "main" |
| 10 | OpExecutionMode %100 OriginUpperLeft |
| 11 | %void = OpTypeVoid |
| 12 | %4 = OpTypeFunction %void |
| 13 | %uint = OpTypeInt 32 0 |
| 14 | %uint_42 = OpConstant %uint 42 |
| 15 | %_ptr_Function_uint = OpTypePointer Function %uint |
| 16 | %100 = OpFunction %void None %4 |
| 17 | %8 = OpLabel |
| 18 | %1 = OpVariable %_ptr_Function_uint Function %uint_42 |
| 19 | %2 = OpLoad %uint %1 |
| 20 | OpStore %1 %2 |
| 21 | OpStore %1 %2 |
| 22 | OpReturn |
| 23 | OpFunctionEnd |
| 24 | |