glsl: Implement IADD CC

This commit is contained in:
ameerj 2021-05-28 15:51:50 -04:00
parent 453cd25da5
commit 21797efa54
2 changed files with 17 additions and 2 deletions

View file

@ -183,6 +183,8 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR
for (size_t index = 0; index < ctx.reg_alloc.num_used_registers; ++index) {
ctx.header += fmt::format("{} R{};", ctx.reg_alloc.reg_types[index], index);
}
// TODO: track CC usage
ctx.header += "uint carry;";
ctx.code.insert(0, ctx.header);
ctx.code += "}";
fmt::print("\n{}\n", ctx.code);