David Neto | d1a026e | 2021-07-30 16:03:06 +0000 | [diff] [blame] | 1 | ; Test: SpvParserCFGTest_EmitBody_Loop_BodyConditionallyBreaks_FromFalse.spvasm |
| 2 | ; SPIR-V |
| 3 | ; Version: 1.0 |
| 4 | ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 5 | ; Bound: 1000 |
| 6 | ; Schema: 0 |
| 7 | OpCapability Shader |
| 8 | OpMemoryModel Logical Simple |
| 9 | OpEntryPoint Fragment %100 "main" |
| 10 | OpExecutionMode %100 OriginUpperLeft |
| 11 | OpName %var "var" |
| 12 | %void = OpTypeVoid |
| 13 | %3 = OpTypeFunction %void |
| 14 | %bool = OpTypeBool |
| 15 | %5 = OpConstantNull %bool |
| 16 | %true = OpConstantTrue %bool |
| 17 | %false = OpConstantFalse %bool |
| 18 | %uint = OpTypeInt 32 0 |
| 19 | %int = OpTypeInt 32 1 |
| 20 | %uint_42 = OpConstant %uint 42 |
| 21 | %int_42 = OpConstant %int 42 |
| 22 | %13 = OpTypeFunction %uint |
| 23 | %uint_0 = OpConstant %uint 0 |
| 24 | %uint_1 = OpConstant %uint 1 |
| 25 | %uint_2 = OpConstant %uint 2 |
| 26 | %uint_3 = OpConstant %uint 3 |
| 27 | %uint_4 = OpConstant %uint 4 |
| 28 | %uint_5 = OpConstant %uint 5 |
| 29 | %uint_6 = OpConstant %uint 6 |
| 30 | %uint_7 = OpConstant %uint 7 |
| 31 | %uint_8 = OpConstant %uint 8 |
| 32 | %uint_10 = OpConstant %uint 10 |
| 33 | %uint_20 = OpConstant %uint 20 |
| 34 | %uint_30 = OpConstant %uint 30 |
| 35 | %uint_40 = OpConstant %uint 40 |
| 36 | %uint_50 = OpConstant %uint 50 |
| 37 | %uint_90 = OpConstant %uint 90 |
| 38 | %uint_99 = OpConstant %uint 99 |
| 39 | %_ptr_Private_uint = OpTypePointer Private %uint |
| 40 | %var = OpVariable %_ptr_Private_uint Private |
| 41 | %uint_999 = OpConstant %uint 999 |
| 42 | %100 = OpFunction %void None %3 |
| 43 | %10 = OpLabel |
| 44 | OpBranch %20 |
| 45 | %20 = OpLabel |
| 46 | OpLoopMerge %99 %80 None |
| 47 | OpBranch %30 |
| 48 | %30 = OpLabel |
| 49 | OpStore %var %uint_1 |
| 50 | OpBranchConditional %5 %80 %99 |
| 51 | %80 = OpLabel |
| 52 | OpStore %var %uint_2 |
| 53 | OpBranch %20 |
| 54 | %99 = OpLabel |
| 55 | OpReturn |
| 56 | OpFunctionEnd |
| 57 | |