Forum: ARM programming with GCC/GNU tools MLA with shifted add

von Ian B. (iaburn)

Rate this post
0 useful
not useful
Hi all, I'm trying to use MLA instead of MUL and ADD in this case:
;v2 = v2 * v5 + v1<<8
mul v2,v5,v2
add v2, v2, v1, lsl #8

This two instructions works fine, but if I try this:
mla v2,v5,v2,v1,lsl #8
all get messed up :(

Does mla support shifts over add operand?
Thanks :)


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.