Idein / py-videocore

Python library for GPGPU on Raspberry Pi
MIT License
795 stars 89 forks source link

fix unexpected exception when relocate same operands. #15

Closed notogawa closed 7 years ago

notogawa commented 7 years ago

This valid asm causes AssembleError.

mov(r1, vpm, set_flags=True).mov(r3, 1.0, cond='nc')
videocore.assembler.AssembleError: Failed to locate operand vpm

When we try to locate same operand to raddr_a/b more than twice, instruction emitter accepts only first one and rejects second one unexpectedly.

nineties commented 7 years ago

Thank you.