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

Function parse_to_uimm128

cranelift/codegen/src/ir/constant.rs:450–455  ·  view source on GitHub ↗
(from: &str)

Source from the content-addressed store, hash-verified

448 #[test]
449 fn check_constant_data_endianness_as_uimm128() {
450 fn parse_to_uimm128(from: &str) -> Vec<u8> {
451 from.parse::<ConstantData>()
452 .unwrap()
453 .expand_to(16)
454 .into_vec()
455 }
456
457 assert_eq!(
458 parse_to_uimm128("0x42"),

Callers

nothing calls this directly

Calls 3

expand_toMethod · 0.80
into_vecMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected