; Wrapping cast keeps the low bits of the two's-complement value. ; expect: run ; result: 254 ; phase: 0 ; spec: docs/spec/02-types-and-values.md module test.wrapping_cast air 0 lang 0.1 features [] fn @main() -> u8 effects [] entry: %a = const.i32 -2 %b = cast.wrap.u8 %a ret %b