mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
x86_64: fix inline asm match constraints
This commit is contained in:
parent
88d0fef92d
commit
defef3f1a1
@ -13500,6 +13500,7 @@ fn airAsm(self: *Self, inst: Air.Inst.Index) !void {
|
||||
} else if (constraint.len == 1 and std.ascii.isDigit(constraint[0])) arg: {
|
||||
const index = std.fmt.charToDigit(constraint[0], 10) catch unreachable;
|
||||
if (index >= args.items.len) return self.fail("constraint out of bounds: '{s}'", .{constraint});
|
||||
try self.genCopy(ty, args.items[index], input_mcv, .{});
|
||||
break :arg args.items[index];
|
||||
} else return self.fail("invalid constraint: '{s}'", .{constraint});
|
||||
if (arg_mcv.getReg()) |reg| if (RegisterManager.indexOfRegIntoTracked(reg)) |_| {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user