x86_64: spill eflags when initializing bool vector

This commit is contained in:
Matthew Lugg 2025-10-31 13:01:42 +00:00
parent 20bd5e8018
commit 6576c3b898
No known key found for this signature in database
GPG key ID: 3F5B7DCCBF4AF02E

View file

@ -180028,6 +180028,8 @@ fn airAggregateInitBoolVec(self: *CodeGen, inst: Air.Inst.Index) !void {
{
const dst_lock = self.register_manager.lockRegAssumeUnused(dst_reg);
defer self.register_manager.unlockReg(dst_lock);
try self.spillEflagsIfOccupied();
try self.asmRegisterRegister(
.{ ._, .xor },
registerAlias(dst_reg, @min(result_size, 4)),