Skip to content

Commit 733008e

Browse files
jacobly0andrewrk
authored andcommitted
x86_64: fix multiplication overflow detection with adx
Closes #24965
1 parent ca2e17e commit 733008e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/arch/x86_64/CodeGen.zig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31490,7 +31490,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3149031490
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
3149131491
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
3149231492
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
31493-
.{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
31493+
.{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
3149431494
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
3149531495
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
3149631496
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -31814,7 +31814,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3181431814
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
3181531815
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
3181631816
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
31817-
.{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
31817+
.{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
3181831818
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
3181931819
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
3182031820
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -32175,7 +32175,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
3217532175
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
3217632176
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
3217732177
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
32178-
.{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
32178+
.{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
3217932179
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
3218032180
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
3218132181
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -55062,7 +55062,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5506255062
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
5506355063
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
5506455064
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
55065-
.{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
55065+
.{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
5506655066
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
5506755067
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
5506855068
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -55361,7 +55361,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5536155361
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
5536255362
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
5536355363
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
55364-
.{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
55364+
.{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
5536555365
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
5536655366
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
5536755367
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },
@@ -55690,7 +55690,7 @@ fn genBody(cg: *CodeGen, body: []const Air.Inst.Index) InnerError!void {
5569055690
.{ ._, ._x, .ado, .tmp8q, .tmp3q, ._, ._ },
5569155691
.{ ._, ._x, .adc, .tmp8q, .tmp3q, ._, ._ },
5569255692
.{ ._, ._mp, .j, .@"2f", ._, ._, ._ },
55693-
.{ .@"1:", ._, .@"or", .tmp8q, .leai(.tmp1q, .tmp4), ._, ._ },
55693+
.{ .@"1:", ._, .@"or", .tmp8q, .leaid(.tmp1q, .tmp4, 8), ._, ._ },
5569455694
.{ .@"2:", ._, .sub, .tmp4d, .si(8), ._, ._ },
5569555695
.{ ._, ._ae, .j, .@"1b", ._, ._, ._ },
5569655696
.{ ._, ._, .@"or", .tmp2q, .tmp8q, ._, ._ },

0 commit comments

Comments
 (0)