Table of Contents

Performance diagnostics (GBS0100–GBS0199)

Operations that are legal but expensive on the SM83. Suppressible: they describe the hardware, not a defect in the code.

GBS0101: Arithmetic widened

Severity: Performance · Suppressible: yes

This {0} operation runs at {1} bits because its result is used as {2}.

Cast the result back to the narrower type to keep the arithmetic 8-bit.

GBS0102: Expensive multiplication

Severity: Performance · Suppressible: yes

Multiplication of {0} values generates expensive code on SM83.

SM83 has no multiply instruction. Consider a shift if one operand is a power of two, or a lookup table if the range is small.

GBS0103: Expensive division

Severity: Performance · Suppressible: yes

{0} of {1} values generates expensive code on SM83.

SM83 has no divide instruction. Consider a shift if the divisor is a power of two.