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

Function xslteq64

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

Source from the content-addressed store, hash-verified

261
262#[test]
263fn xslteq64() {
264 for (expected, a, b) in [
265 (1u64, 0u64, 0u64),
266 (0, 1, 0),
267 (1, 0, 1),
268 (0, 0, -1 as _),
269 (1, -1 as _, 0),
270 (1, i64::MAX as u64, i64::MAX as u64),
271 (0, i64::MAX as u64, i64::MAX as u64 - 1),
272 (1, i64::MAX as u64 - 1, i64::MAX as u64),
273 (1, i64::MIN as u64, i64::MIN as u64),
274 (0, i64::MIN as u64 + 1, i64::MIN as u64),
275 (1, i64::MIN as u64, i64::MIN as u64 + 1),
276 ] {
277 unsafe {
278 assert_one(
279 [(x(0), 0x1234567812345678), (x(1), a), (x(2), b)],
280 Xslteq64 {
281 operands: BinaryOperands {
282 dst: x(0),
283 src1: x(1),
284 src2: x(2),
285 },
286 },
287 x(0),
288 expected | 0x1234567800000000,
289 );
290 }
291 }
292}
293
294#[test]
295fn xult64() {

Callers

nothing calls this directly

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected