EmbDev.net

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


von Ian B. (iaburn)


Rate this post
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 :)

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.