MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / mem_i8_store_load_negative

Function mem_i8_store_load_negative

tests/integration/vm_execution.rs:1590–1611  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1588#[test]
1589fn li_max_unsigned_32bit() {
1590 let (_, outcome, _) = run_hll(
1591 r#"
1592main: () -> i32 {
1593 v: i64 = 4294967295
1594 a: i64 = 65535
1595 b: i64 = 65537
1596 expected: i64 = a * b
1597 if v == expected {
1598 return 0
1599 }
1600 return 1
1601}
1602"#,
1603 );
1604 assert!(
1605 matches!(outcome, RunOutcome::Halted(0)),
1606 "li 0xFFFF_FFFF should load 4294967295, got {outcome:?}"
1607 );
1608}
1609
1610/// 0x1_0000_0000 - first true 64-bit value.
1611#[test]
1612fn li_true_64bit_small() {
1613 let (_, outcome, _) = run_hll(
1614 r#"

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected