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

Function parse_constant_from_booleans

cranelift/reader/src/parser.rs:3646–3656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3644
3645 #[test]
3646 fn parse_constant_from_booleans() {
3647 let c = Parser::new("-1 0 -1 0")
3648 .parse_literals_to_constant_data(I32X4)
3649 .unwrap();
3650 assert_eq!(
3651 c.into_vec(),
3652 [
3653 0xFF, 0xFF, 0xFF, 0xFF, 0, 0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0, 0, 0
3654 ]
3655 )
3656 }
3657
3658 #[test]
3659 fn parse_unbounded_constants() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected