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> {
292
292
let b = this. read_scalar ( b) ?. to_f32 ( ) ?;
293
293
let c = this. read_scalar ( c) ?. to_f32 ( ) ?;
294
294
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 } ;
300
296
let res = this. adjust_nan ( res, & [ a, b, c] ) ;
301
297
this. write_scalar ( res, dest) ?;
302
298
}
@@ -306,11 +302,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
306
302
let b = this. read_scalar ( b) ?. to_f64 ( ) ?;
307
303
let c = this. read_scalar ( c) ?. to_f64 ( ) ?;
308
304
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 } ;
314
306
let res = this. adjust_nan ( res, & [ a, b, c] ) ;
315
307
this. write_scalar ( res, dest) ?;
316
308
}
You can’t perform that action at this time.
0 commit comments