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

Function xconst32

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

Source from the content-addressed store, hash-verified

108
109#[test]
110fn xconst32() {
111 for (expected, imm) in [(42u64, 42i32), (u64::MAX, -1i32)] {
112 unsafe {
113 assert_one(
114 [(x(0), 0x1234567812345678u64)],
115 Xconst32 { dst: x(0), imm },
116 x(0),
117 expected,
118 );
119 }
120 }
121}
122
123#[test]
124fn xconst64() {

Callers 1

pulley_emitFunction · 0.85

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected