mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
arm: sub_with_overflow should always track V flag
This commit is contained in:
parent
852c820841
commit
7f96ca101a
@ -1455,6 +1455,10 @@ fn airOverflow(self: *Self, inst: Air.Inst.Index) !void {
|
||||
}
|
||||
};
|
||||
|
||||
if (tag == .sub_with_overflow) {
|
||||
break :result MCValue{ .register_v_flag = dest.register };
|
||||
}
|
||||
|
||||
switch (int_info.signedness) {
|
||||
.unsigned => break :result MCValue{ .register_c_flag = dest.register },
|
||||
.signed => break :result MCValue{ .register_v_flag = dest.register },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user