@@ -146,60 +146,60 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
146
146
this. write_scalar ( Scalar :: from_bool ( branch) , dest) ?;
147
147
}
148
148
149
- "floorf16" | "ceilf16" | "truncf16" | "roundf16" | "rintf16 " => {
149
+ "floorf16" | "ceilf16" | "truncf16" | "roundf16" | "round_ties_even_f16 " => {
150
150
let [ f] = check_intrinsic_arg_count ( args) ?;
151
151
let f = this. read_scalar ( f) ?. to_f16 ( ) ?;
152
152
let mode = match intrinsic_name {
153
153
"floorf16" => Round :: TowardNegative ,
154
154
"ceilf16" => Round :: TowardPositive ,
155
155
"truncf16" => Round :: TowardZero ,
156
156
"roundf16" => Round :: NearestTiesToAway ,
157
- "rintf16 " => Round :: NearestTiesToEven ,
157
+ "round_ties_even_f16 " => Round :: NearestTiesToEven ,
158
158
_ => bug ! ( ) ,
159
159
} ;
160
160
let res = f. round_to_integral ( mode) . value ;
161
161
let res = this. adjust_nan ( res, & [ f] ) ;
162
162
this. write_scalar ( res, dest) ?;
163
163
}
164
- "floorf32" | "ceilf32" | "truncf32" | "roundf32" | "rintf32 " => {
164
+ "floorf32" | "ceilf32" | "truncf32" | "roundf32" | "round_ties_even_f32 " => {
165
165
let [ f] = check_intrinsic_arg_count ( args) ?;
166
166
let f = this. read_scalar ( f) ?. to_f32 ( ) ?;
167
167
let mode = match intrinsic_name {
168
168
"floorf32" => Round :: TowardNegative ,
169
169
"ceilf32" => Round :: TowardPositive ,
170
170
"truncf32" => Round :: TowardZero ,
171
171
"roundf32" => Round :: NearestTiesToAway ,
172
- "rintf32 " => Round :: NearestTiesToEven ,
172
+ "round_ties_even_f32 " => Round :: NearestTiesToEven ,
173
173
_ => bug ! ( ) ,
174
174
} ;
175
175
let res = f. round_to_integral ( mode) . value ;
176
176
let res = this. adjust_nan ( res, & [ f] ) ;
177
177
this. write_scalar ( res, dest) ?;
178
178
}
179
- "floorf64" | "ceilf64" | "truncf64" | "roundf64" | "rintf64 " => {
179
+ "floorf64" | "ceilf64" | "truncf64" | "roundf64" | "round_ties_even_f64 " => {
180
180
let [ f] = check_intrinsic_arg_count ( args) ?;
181
181
let f = this. read_scalar ( f) ?. to_f64 ( ) ?;
182
182
let mode = match intrinsic_name {
183
183
"floorf64" => Round :: TowardNegative ,
184
184
"ceilf64" => Round :: TowardPositive ,
185
185
"truncf64" => Round :: TowardZero ,
186
186
"roundf64" => Round :: NearestTiesToAway ,
187
- "rintf64 " => Round :: NearestTiesToEven ,
187
+ "round_ties_even_f64 " => Round :: NearestTiesToEven ,
188
188
_ => bug ! ( ) ,
189
189
} ;
190
190
let res = f. round_to_integral ( mode) . value ;
191
191
let res = this. adjust_nan ( res, & [ f] ) ;
192
192
this. write_scalar ( res, dest) ?;
193
193
}
194
- "floorf128" | "ceilf128" | "truncf128" | "roundf128" | "rintf128 " => {
194
+ "floorf128" | "ceilf128" | "truncf128" | "roundf128" | "round_ties_even_f128 " => {
195
195
let [ f] = check_intrinsic_arg_count ( args) ?;
196
196
let f = this. read_scalar ( f) ?. to_f128 ( ) ?;
197
197
let mode = match intrinsic_name {
198
198
"floorf128" => Round :: TowardNegative ,
199
199
"ceilf128" => Round :: TowardPositive ,
200
200
"truncf128" => Round :: TowardZero ,
201
201
"roundf128" => Round :: NearestTiesToAway ,
202
- "rintf128 " => Round :: NearestTiesToEven ,
202
+ "round_ties_even_f128 " => Round :: NearestTiesToEven ,
203
203
_ => bug ! ( ) ,
204
204
} ;
205
205
let res = f. round_to_integral ( mode) . value ;
0 commit comments