MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / bitcast_float_from_int_64

Function bitcast_float_from_int_64

pulley/tests/all/interp.rs:770–796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768
769#[test]
770fn bitcast_float_from_int_64() {
771 for val in [
772 0.0,
773 1.0,
774 9.87654321,
775 f64::MAX,
776 f64::MIN,
777 f64::NAN,
778 f64::INFINITY,
779 f64::NEG_INFINITY,
780 f64::EPSILON,
781 f64::MIN_POSITIVE,
782 ] {
783 let val = val.to_bits();
784 unsafe {
785 assert_one(
786 [(x(0), val)],
787 BitcastFloatFromInt64 {
788 dst: f(0),
789 src: x(0),
790 },
791 f(0),
792 val,
793 );
794 }
795 }
796}
797
798#[test]
799fn trap() {

Callers

nothing calls this directly

Calls 4

assert_oneFunction · 0.85
xFunction · 0.70
fFunction · 0.70
to_bitsMethod · 0.45

Tested by

no test coverage detected