mirror of
https://github.com/ziglang/zig.git
synced 2026-01-01 19:13:16 +00:00
stage2: fix {add,sub,mul}_with_overflow vectorization in LLVM backend
This commit is contained in:
parent
5b03d55c5e
commit
c641fb8f05
@ -5604,8 +5604,9 @@ pub const FuncGen = struct {
|
||||
const rhs = try self.resolveInst(extra.rhs);
|
||||
|
||||
const lhs_ty = self.air.typeOf(extra.lhs);
|
||||
const scalar_ty = lhs_ty.scalarType();
|
||||
|
||||
const intrinsic_name = if (lhs_ty.isSignedInt()) signed_intrinsic else unsigned_intrinsic;
|
||||
const intrinsic_name = if (scalar_ty.isSignedInt()) signed_intrinsic else unsigned_intrinsic;
|
||||
|
||||
const llvm_lhs_ty = try self.dg.llvmType(lhs_ty);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user