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

Function xslt64

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

Source from the content-addressed store, hash-verified

229
230#[test]
231fn xslt64() {
232 for (expected, a, b) in [
233 (0u64, 0u64, 0u64),
234 (0, 1, 0),
235 (1, 0, 1),
236 (0, 0, -1 as _),
237 (1, -1 as _, 0),
238 (0, i64::MAX as u64, i64::MAX as u64),
239 (0, i64::MAX as u64, i64::MAX as u64 - 1),
240 (1, i64::MAX as u64 - 1, i64::MAX as u64),
241 (0, i64::MIN as u64, i64::MIN as u64),
242 (0, i64::MIN as u64 + 1, i64::MIN as u64),
243 (1, i64::MIN as u64, i64::MIN as u64 + 1),
244 ] {
245 unsafe {
246 assert_one(
247 [(x(0), 0x1234567812345678), (x(1), a), (x(2), b)],
248 Xslt64 {
249 operands: BinaryOperands {
250 dst: x(0),
251 src1: x(1),
252 src2: x(2),
253 },
254 },
255 x(0),
256 expected | 0x1234567800000000,
257 );
258 }
259 }
260}
261
262#[test]
263fn xslteq64() {

Callers

nothing calls this directly

Calls 2

assert_oneFunction · 0.85
xFunction · 0.70

Tested by

no test coverage detected