@@ -1267,74 +1267,90 @@ fn codegen_regular_intrinsic_call<'tcx>(
12671267 ret. write_cvalue ( fx, val) ;
12681268 }
12691269
1270- sym:: minnumf16 => {
1270+ sym:: minimum_numberf16 => {
12711271 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
12721272 let a = a. load_scalar ( fx) ;
12731273 let b = b. load_scalar ( fx) ;
12741274
1275+ // FIXME: make sure this has the intended behavior for SNaN
1276+ // (returning the other argument).
12751277 let val = crate :: num:: codegen_float_min ( fx, a, b) ;
12761278 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f16 ) ) ;
12771279 ret. write_cvalue ( fx, val) ;
12781280 }
1279- sym:: minnumf32 => {
1281+ sym:: minimum_numberf32 => {
12801282 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
12811283 let a = a. load_scalar ( fx) ;
12821284 let b = b. load_scalar ( fx) ;
12831285
1286+ // FIXME: make sure this has the intended behavior for SNaN
1287+ // (returning the other argument).
12841288 let val = crate :: num:: codegen_float_min ( fx, a, b) ;
12851289 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f32 ) ) ;
12861290 ret. write_cvalue ( fx, val) ;
12871291 }
1288- sym:: minnumf64 => {
1292+ sym:: minimum_numberf64 => {
12891293 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
12901294 let a = a. load_scalar ( fx) ;
12911295 let b = b. load_scalar ( fx) ;
12921296
1297+ // FIXME: make sure this has the intended behavior for SNaN
1298+ // (returning the other argument).
12931299 let val = crate :: num:: codegen_float_min ( fx, a, b) ;
12941300 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f64 ) ) ;
12951301 ret. write_cvalue ( fx, val) ;
12961302 }
1297- sym:: minnumf128 => {
1303+ sym:: minimum_numberf128 => {
12981304 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
12991305 let a = a. load_scalar ( fx) ;
13001306 let b = b. load_scalar ( fx) ;
13011307
1308+ // FIXME: make sure this has the intended behavior for SNaN
1309+ // (returning the other argument).
13021310 let val = crate :: num:: codegen_float_min ( fx, a, b) ;
13031311 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f128 ) ) ;
13041312 ret. write_cvalue ( fx, val) ;
13051313 }
1306- sym:: maxnumf16 => {
1314+ sym:: maximum_numberf16 => {
13071315 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
13081316 let a = a. load_scalar ( fx) ;
13091317 let b = b. load_scalar ( fx) ;
13101318
1319+ // FIXME: make sure this has the intended behavior for SNaN
1320+ // (returning the other argument).
13111321 let val = crate :: num:: codegen_float_max ( fx, a, b) ;
13121322 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f16 ) ) ;
13131323 ret. write_cvalue ( fx, val) ;
13141324 }
1315- sym:: maxnumf32 => {
1325+ sym:: maximum_numberf32 => {
13161326 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
13171327 let a = a. load_scalar ( fx) ;
13181328 let b = b. load_scalar ( fx) ;
13191329
1330+ // FIXME: make sure this has the intended behavior for SNaN
1331+ // (returning the other argument).
13201332 let val = crate :: num:: codegen_float_max ( fx, a, b) ;
13211333 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f32 ) ) ;
13221334 ret. write_cvalue ( fx, val) ;
13231335 }
1324- sym:: maxnumf64 => {
1336+ sym:: maximum_numberf64 => {
13251337 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
13261338 let a = a. load_scalar ( fx) ;
13271339 let b = b. load_scalar ( fx) ;
13281340
1341+ // FIXME: make sure this has the intended behavior for SNaN
1342+ // (returning the other argument).
13291343 let val = crate :: num:: codegen_float_max ( fx, a, b) ;
13301344 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f64 ) ) ;
13311345 ret. write_cvalue ( fx, val) ;
13321346 }
1333- sym:: maxnumf128 => {
1347+ sym:: maximum_numberf128 => {
13341348 intrinsic_args ! ( fx, args => ( a, b) ; intrinsic) ;
13351349 let a = a. load_scalar ( fx) ;
13361350 let b = b. load_scalar ( fx) ;
13371351
1352+ // FIXME: make sure this has the intended behavior for SNaN
1353+ // (returning the other argument).
13381354 let val = crate :: num:: codegen_float_max ( fx, a, b) ;
13391355 let val = CValue :: by_val ( val, fx. layout_of ( fx. tcx . types . f128 ) ) ;
13401356 ret. write_cvalue ( fx, val) ;
0 commit comments