@@ -742,6 +742,8 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
742
742
| "log1pf"
743
743
| "expm1f"
744
744
| "tgammaf"
745
+ | "erff"
746
+ | "erfcf"
745
747
=> {
746
748
let [ f] = this. check_shim ( abi, Conv :: C , link_name, args) ?;
747
749
let f = this. read_scalar ( f) ?. to_f32 ( ) ?;
@@ -759,6 +761,8 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
759
761
"log1pf" => f_host. ln_1p ( ) ,
760
762
"expm1f" => f_host. exp_m1 ( ) ,
761
763
"tgammaf" => f_host. gamma ( ) ,
764
+ "erff" => f_host. erf ( ) ,
765
+ "erfcf" => f_host. erfc ( ) ,
762
766
_ => bug ! ( ) ,
763
767
} ;
764
768
let res = res. to_soft ( ) ;
@@ -799,6 +803,8 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
799
803
| "log1p"
800
804
| "expm1"
801
805
| "tgamma"
806
+ | "erf"
807
+ | "erfc"
802
808
=> {
803
809
let [ f] = this. check_shim ( abi, Conv :: C , link_name, args) ?;
804
810
let f = this. read_scalar ( f) ?. to_f64 ( ) ?;
@@ -816,6 +822,8 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
816
822
"log1p" => f_host. ln_1p ( ) ,
817
823
"expm1" => f_host. exp_m1 ( ) ,
818
824
"tgamma" => f_host. gamma ( ) ,
825
+ "erf" => f_host. erf ( ) ,
826
+ "erfc" => f_host. erfc ( ) ,
819
827
_ => bug ! ( ) ,
820
828
} ;
821
829
let res = res. to_soft ( ) ;
0 commit comments