authorgravatar for william@sengir.comWilliam Sengir <william@sengir.com> 2022-03-26 15:40:31-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-16 13:55:26-07:00
logc641fb8f05cfbca7484a09496f33bc9c2d95941e
tree200a05dd786f10e10b25ee5f810c0199913c2b6a
parent5b03d55c5ecf697086db7c454e0f3982fec42408

stage2: fix {add,sub,mul}_with_overflow vectorization in LLVM backend


1 files changed, 2 insertions(+), 1 deletions(-)

src/codegen/llvm.zig+2-1
...@@ -5604,8 +5604,9 @@ pub const FuncGen = struct {...@@ -5604,8 +5604,9 @@ pub const FuncGen = struct {
5604 const rhs = try self.resolveInst(extra.rhs);5604 const rhs = try self.resolveInst(extra.rhs);
56055605
5606 const lhs_ty = self.air.typeOf(extra.lhs);5606 const lhs_ty = self.air.typeOf(extra.lhs);
5607 const scalar_ty = lhs_ty.scalarType();
56075608
5608 const intrinsic_name = if (lhs_ty.isSignedInt()) signed_intrinsic else unsigned_intrinsic;5609 const intrinsic_name = if (scalar_ty.isSignedInt()) signed_intrinsic else unsigned_intrinsic;
56095610
5610 const llvm_lhs_ty = try self.dg.llvmType(lhs_ty);5611 const llvm_lhs_ty = try self.dg.llvmType(lhs_ty);
56115612