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

Function xadd64

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

Source from the content-addressed store, hash-verified

159
160#[test]
161fn xadd64() {
162 for (expected, a, b) in [(42u64, 10u64, 32u64), (0, u64::MAX, 1)] {
163 unsafe {
164 assert_one(
165 [(x(0), 0x1234567812345678), (x(1), a), (x(2), b)],
166 Xadd64 {
167 operands: BinaryOperands {
168 dst: x(0),
169 src1: x(1),
170 src2: x(2),
171 },
172 },
173 x(0),
174 expected,
175 );
176 }
177 }
178}
179
180#[test]
181fn xeq64() {

Callers 1

pulley_emitFunction · 0.85

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected