mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-26 07:17:49 +00:00
Test branches
This commit is contained in:
parent
a6946d3c8e
commit
abcc20748c
1 changed files with 6 additions and 0 deletions
|
@ -51,9 +51,15 @@ public:
|
||||||
Constant(TypeFloat(32), Literal(50.0f))});
|
Constant(TypeFloat(32), Literal(50.0f))});
|
||||||
ConstantNull(TypeVector(TypeInt(64, false), 4));
|
ConstantNull(TypeVector(TypeInt(64, false), 4));
|
||||||
|
|
||||||
|
auto skip{Label()};
|
||||||
|
auto end{Label()};
|
||||||
auto main_type{TypeFunction(TypeVoid())};
|
auto main_type{TypeFunction(TypeVoid())};
|
||||||
auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};
|
auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};
|
||||||
Emit(Label());
|
Emit(Label());
|
||||||
|
Emit(BranchConditional(ConstantTrue(TypeBool()), skip, end, 5, 0));
|
||||||
|
Emit(skip);
|
||||||
|
Emit(Branch(end));
|
||||||
|
Emit(end);
|
||||||
Emit(Return());
|
Emit(Return());
|
||||||
Emit(FunctionEnd());
|
Emit(FunctionEnd());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue