[Libre-soc-dev] daily kan-ban update 11oct2020
Jacob Lifshay
programmerjake at gmail.com
Mon Oct 12 02:38:19 BST 2020
today:
working on adding support for instructions with immediate operands to
power-instruction-analyzer.
My idea for how to do that is to have a sequence of instructions
inside the inline assembly:
<code to calculate ctr based on ctr = label0 + n * (label1 - label0)>
<register setup code>
bctrl
b finish
label0:
# using addi here, could use any other instruction with 1 immediate
addi rt, ra, 0
blr
label1:
addi rt, ra, 1
blr
...
addi rt, ra, -1 # really 0xFFFF
blr
finish:
<code to handle results>
This depends on all of the addi blr sequences being the same length,
so I'll probably have an assembly-time or run-time assert to check
that.
Jacob
More information about the Libre-soc-dev
mailing list