diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-05-27 22:03:12 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:56 -0700 |
| commit | d40b83de45db27c8c3e7a1f2ccf892563df43637 (patch) | |
| tree | c5be27004a8a8718571f2d1ff9d08e7e3f6c2904 /src/value.zig | |
| parent | 2d5bc0146941f4cc207c4fd23058e25a16fd40a7 (diff) | |
| download | zig-d40b83de45db27c8c3e7a1f2ccf892563df43637.tar.gz zig-d40b83de45db27c8c3e7a1f2ccf892563df43637.zip | |
behavior: pass more tests on llvm again
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/value.zig b/src/value.zig index dda95cbb44..a9fb906c0b 100644 --- a/src/value.zig +++ b/src/value.zig @@ -2340,16 +2340,16 @@ pub const Value = struct { const lhs_elem = try lhs.elemValue(mod, i); const rhs_elem = try rhs.elemValue(mod, i); const of_math_result = try intMulWithOverflowScalar(lhs_elem, rhs_elem, scalar_ty, arena, mod); - of.* = try of_math_result.overflow_bit.intern(Type.bool, mod); + of.* = try of_math_result.overflow_bit.intern(Type.u1, mod); scalar.* = try of_math_result.wrapped_result.intern(scalar_ty, mod); } return OverflowArithmeticResult{ .overflow_bit = (try mod.intern(.{ .aggregate = .{ - .ty = ty.toIntern(), + .ty = (try mod.vectorType(.{ .len = vec_len, .child = .u1_type })).toIntern(), .storage = .{ .elems = overflowed_data }, } })).toValue(), .wrapped_result = (try mod.intern(.{ .aggregate = .{ - .ty = (try mod.vectorType(.{ .len = vec_len, .child = .u1_type })).toIntern(), + .ty = ty.toIntern(), .storage = .{ .elems = result_data }, } })).toValue(), }; @@ -3090,16 +3090,16 @@ pub const Value = struct { const lhs_elem = try lhs.elemValue(mod, i); const rhs_elem = try rhs.elemValue(mod, i); const of_math_result = try shlWithOverflowScalar(lhs_elem, rhs_elem, scalar_ty, allocator, mod); - of.* = try of_math_result.overflow_bit.intern(Type.bool, mod); + of.* = try of_math_result.overflow_bit.intern(Type.u1, mod); scalar.* = try of_math_result.wrapped_result.intern(scalar_ty, mod); } return OverflowArithmeticResult{ .overflow_bit = (try mod.intern(.{ .aggregate = .{ - .ty = ty.toIntern(), + .ty = (try mod.vectorType(.{ .len = vec_len, .child = .u1_type })).toIntern(), .storage = .{ .elems = overflowed_data }, } })).toValue(), .wrapped_result = (try mod.intern(.{ .aggregate = .{ - .ty = (try mod.vectorType(.{ .len = vec_len, .child = .u1_type })).toIntern(), + .ty = ty.toIntern(), .storage = .{ .elems = result_data }, } })).toValue(), }; |
