Files
micropython/tests/inlineasm/thumb/asmbcc.py.exp
T
Alessandro Gatti b67c55cb4f py/emitinlinethumb: Shrink condition code lookups.
This commit optimises the lookup of opcodes' condition codes, in order
to take up less code than before.

The original data was held in a table containing the condition code
value (an incrementing 0-based integer) and the two condition ASCII
characters.  Given that the condition code value also matches the
entry's index in the table, that can be safely omitted.

This saves 52 bytes when compiled for Thumb.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2026-04-15 15:35:27 +10:00

71 lines
209 B
Plaintext

BEQ
10
20
10
10
BNE
0
10
20
30
BCS
10
20
30
0
BCC
0
10
10
10
BMI
0
10
10
10
BPL
10
20
30
0
BVS
10
10
10
10
BVC
0
0
0
0
BHI
10
10
20
30
BLS
0
0
10
10
BGE
10
20
30
0
BLT
0
10
10
10
BGT
10
10
20
30
BLE
0
0
10
10