File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/tools/miri/src/intrinsics Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -292,11 +292,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
292292 let b = this. read_scalar ( b) ?. to_f32 ( ) ?;
293293 let c = this. read_scalar ( c) ?. to_f32 ( ) ?;
294294 let fuse: bool = this. machine . float_nondet && this. machine . rng . get_mut ( ) . random ( ) ;
295- let res = if fuse {
296- a. mul_add ( b, c) . value
297- } else {
298- ( ( a * b) . value + c) . value
299- } ;
295+ let res = if fuse { a. mul_add ( b, c) . value } else { ( ( a * b) . value + c) . value } ;
300296 let res = this. adjust_nan ( res, & [ a, b, c] ) ;
301297 this. write_scalar ( res, dest) ?;
302298 }
@@ -306,11 +302,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
306302 let b = this. read_scalar ( b) ?. to_f64 ( ) ?;
307303 let c = this. read_scalar ( c) ?. to_f64 ( ) ?;
308304 let fuse: bool = this. machine . float_nondet && this. machine . rng . get_mut ( ) . random ( ) ;
309- let res = if fuse {
310- a. mul_add ( b, c) . value
311- } else {
312- ( ( a * b) . value + c) . value
313- } ;
305+ let res = if fuse { a. mul_add ( b, c) . value } else { ( ( a * b) . value + c) . value } ;
314306 let res = this. adjust_nan ( res, & [ a, b, c] ) ;
315307 this. write_scalar ( res, dest) ?;
316308 }
You can’t perform that action at this time.
0 commit comments