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

Function global_bss_zero_init

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

Source from the content-addressed store, hash-verified

1510 return 1
1511}
1512"#,
1513 );
1514 assert!(
1515 matches!(outcome, RunOutcome::Halted(0)),
1516 "li 2048 should load 2048 (LUI+ADDI path), got {outcome:?}"
1517 );
1518}
1519
1520/// 0x7FFF_FFFF - last value before the sign-extension danger zone.
1521#[test]
1522fn li_max_signed_32bit() {
1523 let (_, outcome, _) = run_hll(
1524 r#"
1525main: () -> i32 {
1526 v: i32 = 2147483647
1527 a: i32 = 1073741823
1528 expected: i32 = a + a + 1
1529 if v == expected {
1530 return 0
1531 }
1532 return 1
1533}

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected