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

Function xulteq64

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

Source from the content-addressed store, hash-verified

322
323#[test]
324fn xulteq64() {
325 for (expected, a, b) in [
326 (1u64, 0u64, 0u64),
327 (0, 1, 0),
328 (1, 0, 1),
329 (1, u64::MAX, u64::MAX),
330 (0, u64::MAX, u64::MAX - 1),
331 (1, u64::MAX - 1, u64::MAX),
332 (0, i64::MIN as u64, 0),
333 (1, 0, i64::MIN as u64),
334 ] {
335 unsafe {
336 assert_one(
337 [(x(0), 0x1234567812345678), (x(1), a), (x(2), b)],
338 Xulteq64 {
339 operands: BinaryOperands {
340 dst: x(0),
341 src1: x(1),
342 src2: x(2),
343 },
344 },
345 x(0),
346 expected | 0x1234567800000000,
347 );
348 }
349 }
350}
351
352#[test]
353fn xeq32() {

Callers

nothing calls this directly

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected