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

Function xconst16

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

Source from the content-addressed store, hash-verified

94
95#[test]
96fn xconst16() {
97 for (expected, imm) in [(42u64, 42i16), (u64::MAX, -1i16)] {
98 unsafe {
99 assert_one(
100 [(x(0), 0x1234567812345678u64)],
101 Xconst16 { dst: x(0), imm },
102 x(0),
103 expected,
104 );
105 }
106 }
107}
108
109#[test]
110fn xconst32() {

Callers 1

pulley_emitFunction · 0.85

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected