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

Function small_memcmp_byte_ugt

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

Source from the content-addressed store, hash-verified

1664
1665 #[test]
1666 fn small_memcmp_byte_ugt() {
1667 let align_one = std::num::NonZeroU8::new(1).unwrap();
1668 small_memcmp_helper(
1669 "
1670block0:
1671 v6 = iconst.i64 0
1672 v1 -> v6
1673 v5 = iconst.i64 0
1674 v0 -> v5
1675 v2 = load.i8 aligned v0 ; v0 = 0
1676 v3 = load.i8 aligned v1 ; v1 = 0
1677 v4 = icmp ugt v2, v3
1678 return v4",
1679 |builder, target, x, y| {
1680 builder.emit_small_memory_compare(
1681 target.frontend_config(),
1682 IntCC::UnsignedGreaterThan,
1683 x,
1684 y,
1685 1,
1686 align_one,
1687 align_one,
1688 MemFlagsData::new(),
1689 )
1690 },
1691 );
1692 }
1693
1694 #[test]
1695 fn small_memcmp_aligned_eq() {

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