use casted_rhs instead of rhs so icmp works correctly for airShlSat
This commit is contained in:
@@ -8433,7 +8433,7 @@ pub const FuncGen = struct {
|
||||
llvm_lhs_ty,
|
||||
try o.builder.intConst(llvm_lhs_scalar_ty, -1),
|
||||
);
|
||||
const in_range = try self.wip.icmp(.ult, rhs, bits, "");
|
||||
const in_range = try self.wip.icmp(.ult, casted_rhs, bits, "");
|
||||
return self.wip.select(.normal, in_range, result, lhs_max, "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user