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

Function xult64

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

Source from the content-addressed store, hash-verified

293
294#[test]
295fn xult64() {
296 for (expected, a, b) in [
297 (0u64, 0u64, 0u64),
298 (0, 1, 0),
299 (1, 0, 1),
300 (0, u64::MAX, u64::MAX),
301 (0, u64::MAX, u64::MAX - 1),
302 (1, u64::MAX - 1, u64::MAX),
303 (0, i64::MIN as u64, 0),
304 (1, 0, i64::MIN as u64),
305 ] {
306 unsafe {
307 assert_one(
308 [(x(0), 0x1234567812345678), (x(1), a), (x(2), b)],
309 Xult64 {
310 operands: BinaryOperands {
311 dst: x(0),
312 src1: x(1),
313 src2: x(2),
314 },
315 },
316 x(0),
317 expected | 0x1234567800000000,
318 );
319 }
320 }
321}
322
323#[test]
324fn xulteq64() {

Callers

nothing calls this directly

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected