| ... | @@ -20859,7 +20859,7 @@ fn zirRoundCast( | ... | @@ -20859,7 +20859,7 @@ fn zirRoundCast( |
| 20859 | }; | 20859 | }; |
| 20860 | | 20860 | |
| 20861 | const dest_ty = try sema.resolveDestType(block, src, extra.lhs, .remove_eu_opt, builtin_name); | 20861 | const dest_ty = try sema.resolveDestType(block, src, extra.lhs, .remove_eu_opt, builtin_name); |
| 20862 | const operand = try sema.resolveInst(extra.rhs); | 20862 | const operand = sema.resolveInst(extra.rhs); |
| 20863 | const operand_ty = sema.typeOf(operand); | 20863 | const operand_ty = sema.typeOf(operand); |
| 20864 | | 20864 | |
| 20865 | try sema.checkVectorizableBinaryOperands(block, operand_src, dest_ty, operand_ty, src, operand_src); | 20865 | try sema.checkVectorizableBinaryOperands(block, operand_src, dest_ty, operand_ty, src, operand_src); |
| ... | @@ -20894,7 +20894,7 @@ fn zirRoundCast( | ... | @@ -20894,7 +20894,7 @@ fn zirRoundCast( |
| 20894 | _ = try sema.checkIntType(block, src, dest_scalar_ty); | 20894 | _ = try sema.checkIntType(block, src, dest_scalar_ty); |
| 20895 | try sema.checkFloatType(block, operand_src, operand_scalar_ty); | 20895 | try sema.checkFloatType(block, operand_src, operand_scalar_ty); |
| 20896 | | 20896 | |
| 20897 | if (try sema.resolveValue(operand)) |operand_val| { | 20897 | if (sema.resolveValue(operand)) |operand_val| { |
| 20898 | const result_val = try sema.intFromFloat(block, operand_src, operand_val, operand_ty, dest_ty, mode); | 20898 | const result_val = try sema.intFromFloat(block, operand_src, operand_val, operand_ty, dest_ty, mode); |
| 20899 | return Air.internedToRef(result_val.toIntern()); | 20899 | return Air.internedToRef(result_val.toIntern()); |
| 20900 | } else if (dest_scalar_ty.zigTypeTag(zcu) == .comptime_int) { | 20900 | } else if (dest_scalar_ty.zigTypeTag(zcu) == .comptime_int) { |