@@ -246,20 +246,20 @@ impl Builder<'_, '_> {
246
246
LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Log1p ) => {
247
247
assert_eq ! ( args. len( ) , 1 ) ;
248
248
let one = self . constant_float ( args[ 0 ] . ty , 1.0 ) ;
249
- let add = self . add ( args[ 0 ] , one) ;
249
+ let add = self . fadd ( args[ 0 ] , one) ;
250
250
self . gl_op ( GLOp :: Log , result_type, [ add] )
251
251
}
252
252
LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Exp10 ) => {
253
253
assert_eq ! ( args. len( ) , 1 ) ;
254
254
// exp10(x) == exp(x * log(10));
255
255
let log10 = self . constant_float ( args[ 0 ] . ty , 10.0f64 . ln ( ) ) ;
256
- let mul = self . mul ( args[ 0 ] , log10) ;
256
+ let mul = self . fmul ( args[ 0 ] , log10) ;
257
257
self . gl_op ( GLOp :: Exp , result_type, [ mul] )
258
258
}
259
259
LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Expm1 ) => {
260
260
let exp = self . gl_op ( GLOp :: Exp , args[ 0 ] . ty , [ args[ 0 ] ] ) ;
261
261
let one = self . constant_float ( exp. ty , 1.0 ) ;
262
- self . sub ( exp, one)
262
+ self . fsub ( exp, one)
263
263
}
264
264
LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Erf ) => {
265
265
self . undef_zombie ( result_type, "Erf not supported yet" )
0 commit comments