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

Function small_memcmp_zero_size

cranelift/frontend/src/frontend.rs:1639–1663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1637
1638 #[test]
1639 fn small_memcmp_zero_size() {
1640 let align_eight = std::num::NonZeroU8::new(8).unwrap();
1641 small_memcmp_helper(
1642 "
1643block0:
1644 v4 = iconst.i64 0
1645 v1 -> v4
1646 v3 = iconst.i64 0
1647 v0 -> v3
1648 v2 = iconst.i8 1
1649 return v2 ; v2 = 1",
1650 |builder, target, x, y| {
1651 builder.emit_small_memory_compare(
1652 target.frontend_config(),
1653 IntCC::UnsignedGreaterThanOrEqual,
1654 x,
1655 y,
1656 0,
1657 align_eight,
1658 align_eight,
1659 MemFlagsData::new(),
1660 )
1661 },
1662 );
1663 }
1664
1665 #[test]
1666 fn small_memcmp_byte_ugt() {

Callers

nothing calls this directly

Calls 5

small_memcmp_helperFunction · 0.85
frontend_configMethod · 0.80
newFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected