@@ -146,60 +146,60 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
146146 this. write_scalar ( Scalar :: from_bool ( branch) , dest) ?;
147147 }
148148
149- "floorf16" | "ceilf16" | "truncf16" | "roundf16" | "rintf16 " => {
149+ "floorf16" | "ceilf16" | "truncf16" | "roundf16" | "round_ties_even_f16 " => {
150150 let [ f] = check_intrinsic_arg_count ( args) ?;
151151 let f = this. read_scalar ( f) ?. to_f16 ( ) ?;
152152 let mode = match intrinsic_name {
153153 "floorf16" => Round :: TowardNegative ,
154154 "ceilf16" => Round :: TowardPositive ,
155155 "truncf16" => Round :: TowardZero ,
156156 "roundf16" => Round :: NearestTiesToAway ,
157- "rintf16 " => Round :: NearestTiesToEven ,
157+ "round_ties_even_f16 " => Round :: NearestTiesToEven ,
158158 _ => bug ! ( ) ,
159159 } ;
160160 let res = f. round_to_integral ( mode) . value ;
161161 let res = this. adjust_nan ( res, & [ f] ) ;
162162 this. write_scalar ( res, dest) ?;
163163 }
164- "floorf32" | "ceilf32" | "truncf32" | "roundf32" | "rintf32 " => {
164+ "floorf32" | "ceilf32" | "truncf32" | "roundf32" | "round_ties_even_f32 " => {
165165 let [ f] = check_intrinsic_arg_count ( args) ?;
166166 let f = this. read_scalar ( f) ?. to_f32 ( ) ?;
167167 let mode = match intrinsic_name {
168168 "floorf32" => Round :: TowardNegative ,
169169 "ceilf32" => Round :: TowardPositive ,
170170 "truncf32" => Round :: TowardZero ,
171171 "roundf32" => Round :: NearestTiesToAway ,
172- "rintf32 " => Round :: NearestTiesToEven ,
172+ "round_ties_even_f32 " => Round :: NearestTiesToEven ,
173173 _ => bug ! ( ) ,
174174 } ;
175175 let res = f. round_to_integral ( mode) . value ;
176176 let res = this. adjust_nan ( res, & [ f] ) ;
177177 this. write_scalar ( res, dest) ?;
178178 }
179- "floorf64" | "ceilf64" | "truncf64" | "roundf64" | "rintf64 " => {
179+ "floorf64" | "ceilf64" | "truncf64" | "roundf64" | "round_ties_even_f64 " => {
180180 let [ f] = check_intrinsic_arg_count ( args) ?;
181181 let f = this. read_scalar ( f) ?. to_f64 ( ) ?;
182182 let mode = match intrinsic_name {
183183 "floorf64" => Round :: TowardNegative ,
184184 "ceilf64" => Round :: TowardPositive ,
185185 "truncf64" => Round :: TowardZero ,
186186 "roundf64" => Round :: NearestTiesToAway ,
187- "rintf64 " => Round :: NearestTiesToEven ,
187+ "round_ties_even_f64 " => Round :: NearestTiesToEven ,
188188 _ => bug ! ( ) ,
189189 } ;
190190 let res = f. round_to_integral ( mode) . value ;
191191 let res = this. adjust_nan ( res, & [ f] ) ;
192192 this. write_scalar ( res, dest) ?;
193193 }
194- "floorf128" | "ceilf128" | "truncf128" | "roundf128" | "rintf128 " => {
194+ "floorf128" | "ceilf128" | "truncf128" | "roundf128" | "round_ties_even_f128 " => {
195195 let [ f] = check_intrinsic_arg_count ( args) ?;
196196 let f = this. read_scalar ( f) ?. to_f128 ( ) ?;
197197 let mode = match intrinsic_name {
198198 "floorf128" => Round :: TowardNegative ,
199199 "ceilf128" => Round :: TowardPositive ,
200200 "truncf128" => Round :: TowardZero ,
201201 "roundf128" => Round :: NearestTiesToAway ,
202- "rintf128 " => Round :: NearestTiesToEven ,
202+ "round_ties_even_f128 " => Round :: NearestTiesToEven ,
203203 _ => bug ! ( ) ,
204204 } ;
205205 let res = f. round_to_integral ( mode) . value ;
0 commit comments