glsl: Implement IADD CC
This commit is contained in:
parent
453cd25da5
commit
21797efa54
2 changed files with 17 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue