Closed ccasin closed 2 years ago
(Note this can be worked around in the short term with patch code like:
"patch-code" : "int input, output, x;
x = 5;
output = input * x;"
This gets the compiler to put x into a register.)
This issue is fixed with the merging of the cp6 branch.
For patch code like:
We're generating ARM instructions like:
But I think the ARM spec says all arguments to
mul
must be registers (constants are not allowed) - and we get an error from the assembler. See:https://www.keil.com/support/man/docs/armasm/armasm_dom1361289882394.htm