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

Function xeq64

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

Source from the content-addressed store, hash-verified

179
180#[test]
181fn xeq64() {
182 for (expected, a, b) in [
183 (1u64, 0u64, 0u64),
184 (0, 0, 1),
185 (1, u64::MAX, u64::MAX),
186 (0, u64::MAX, u64::MAX - 1),
187 ] {
188 unsafe {
189 assert_one(
190 [(x(0), 0x1234567812345678), (x(1), a), (x(2), b)],
191 Xeq64 {
192 operands: BinaryOperands {
193 dst: x(0),
194 src1: x(1),
195 src2: x(2),
196 },
197 },
198 x(0),
199 expected | 0x1234567800000000,
200 );
201 }
202 }
203}
204
205#[test]
206fn xneq64() {

Callers

nothing calls this directly

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected