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

Function xconst8

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

Source from the content-addressed store, hash-verified

80
81#[test]
82fn xconst8() {
83 for (expected, imm) in [(42u64, 42i8), (u64::MAX, -1i8)] {
84 unsafe {
85 assert_one(
86 [(x(0), 0x1234567812345678u64)],
87 Xconst8 { dst: x(0), imm },
88 x(0),
89 expected,
90 );
91 }
92 }
93}
94
95#[test]
96fn xconst16() {

Callers 1

pulley_emitFunction · 0.85

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected