Skip to content

Commit

Permalink
Use codegen_unimplemented_intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Apr 8, 2022
1 parent af92b93 commit 9a2a3fc
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/kani-compiler/src/codegen_cprover_gotoc/codegen/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,12 @@ impl<'tcx> GotocCtx<'tcx> {
"https://github.com/model-checking/kani/issues/374"
)
}
// FIXME: https://github.com/model-checking/kani/issues/1025
// "ceilf32" => codegen_simple_intrinsic!(Ceilf),
// "ceilf64" => codegen_simple_intrinsic!(Ceil),
"ceilf32" => codegen_unimplemented_intrinsic!(
"https://github.com/model-checking/kani/issues/1025"
),
"ceilf64" => codegen_unimplemented_intrinsic!(
"https://github.com/model-checking/kani/issues/1025"
),
"copy" => codegen_intrinsic_copy!(Memmove),
"copy_nonoverlapping" => codegen_intrinsic_copy!(Memcpy),
"copysignf32" => codegen_simple_intrinsic!(Copysignf),
Expand Down Expand Up @@ -426,9 +429,12 @@ impl<'tcx> GotocCtx<'tcx> {
let binop_stmt = codegen_intrinsic_binop!(div);
self.add_finite_args_checks(intrinsic, fargs_clone, binop_stmt, span)
}
// FIXME: https://github.com/model-checking/kani/issues/1025
// "floorf32" => codegen_simple_intrinsic!(Floorf),
// "floorf64" => codegen_simple_intrinsic!(Floor),
"floorf32" => codegen_unimplemented_intrinsic!(
"https://github.com/model-checking/kani/issues/1025"
),
"floorf64" => codegen_unimplemented_intrinsic!(
"https://github.com/model-checking/kani/issues/1025"
),
"fmaf32" => codegen_simple_intrinsic!(Fmaf),
"fmaf64" => codegen_simple_intrinsic!(Fma),
"fmul_fast" => {
Expand Down Expand Up @@ -473,9 +479,12 @@ impl<'tcx> GotocCtx<'tcx> {
"rintf64" => codegen_simple_intrinsic!(Rint),
"rotate_left" => codegen_intrinsic_binop!(rol),
"rotate_right" => codegen_intrinsic_binop!(ror),
// FIXME: https://github.com/model-checking/kani/issues/1025
// "roundf32" => codegen_simple_intrinsic!(Roundf),
// "roundf64" => codegen_simple_intrinsic!(Round),
"roundf32" => codegen_unimplemented_intrinsic!(
"https://github.com/model-checking/kani/issues/1025"
),
"roundf64" => codegen_unimplemented_intrinsic!(
"https://github.com/model-checking/kani/issues/1025"
),
"saturating_add" => codegen_intrinsic_binop_with_mm!(saturating_add),
"saturating_sub" => codegen_intrinsic_binop_with_mm!(saturating_sub),
"sinf32" => codegen_simple_intrinsic!(Sinf),
Expand Down

0 comments on commit 9a2a3fc

Please sign in to comment.