1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
4 ; Checks SPIR-V blocks are correctly reordered so that dominators shows up
5 ; before others in the binary layout.
9 ; CHECK: OpBranch %[[#l1:]]
11 ; CHECK: %[[#l1]] = OpLabel
12 ; CHECK: OpBranch %[[#l2:]]
14 ; CHECK: %[[#l2]] = OpLabel
15 ; CHECK: OpBranch %[[#end:]]
17 ; CHECK: %[[#end]] = OpLabel