x86_64: fix assert location

This commit is contained in:
Jacob Young
2024-02-07 02:32:28 +01:00
parent 5a62f26579
commit 7c9a96111c
2 changed files with 1 additions and 3 deletions

View File

@@ -2790,8 +2790,6 @@ test "positional/alignment/width/precision" {
}
test "vector" {
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
if (builtin.target.cpu.arch == .riscv64) {
// https://github.com/ziglang/zig/issues/4486
return error.SkipZigTest;

View File

@@ -8181,13 +8181,13 @@ fn genShiftBinOp(
lhs_ty.fmt(mod),
});
assert(rhs_ty.abiSize(mod) == 1);
try self.spillEflagsIfOccupied();
const lhs_abi_size = lhs_ty.abiSize(mod);
if (lhs_abi_size > 16) return self.fail("TODO implement genShiftBinOp for {}", .{
lhs_ty.fmt(mod),
});
assert(rhs_ty.abiSize(mod) == 1);
try self.register_manager.getReg(.rcx, null);
const rcx_lock = self.register_manager.lockRegAssumeUnused(.rcx);