// Program where loop-head optimization produces wrong return value
// Reported by Richard-William Loerakker

import "c64"
import "multiply"

void main() {
    dword result = mul16u(4,123);
    word kaputt = <result;
    *BORDERCOL = <kaputt;
    *BGCOL = >kaputt;
}