aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-08-26 19:15:29 -0400
committerAndrew Kelley <andrew@ziglang.org>2025-08-27 20:00:46 -0700
commit733008ec6b8e15fc54f14399adfc04682c69988b (patch)
tree44a3bfe0a2baffda1b37032330214a5b51e7bbe1
parentca2e17e0a14b3bb63e9d1c75be7147357f87e9af (diff)
downloadzig-733008ec6b8e15fc54f14399adfc04682c69988b.tar.gz
zig-733008ec6b8e15fc54f14399adfc04682c69988b.zip
x86_64: fix multiplication overflow detection with adx
Closes #24965
-rw-r--r--src/arch/x86_64/CodeGen.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index 5b0181cdcd..5c76b7af92 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -31490,7 +31490,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
- .{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
+ .{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -31814,7 +31814,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
- .{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
+ .{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -32175,7 +32175,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
- .{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
+ .{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -55062,7 +55062,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
- .{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
+ .{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -55361,7 +55361,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
- .{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
+ .{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -55690,7 +55690,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
- .{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
+ .{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },