#165688 - Kaiser - Sat Jan 03, 2009 9:45 pm
For some reason, GCC seems to throw a fit whenever I am using the SMULL instruction in my inline'ed assembly code:
When compiling, GCC would then spew out this message:
Error: selected processor does not support `smull r4,r5,r0,r0'
Error: selected processor does not support `smull r4,r5,r1,r1'
Anyone could point out any work-arounds for this? I appreciate the help, thanks.
Code: |
typedef int fixed_t; fixed_t FixedMul(fixed_t a, fixed_t b) { __asm ("smull r2, r3, %0, %1\n" "mov %1, r2, lsr #16\n" "mov r2, r3, lsl #16\n" "orr %0, %1, r2" : "=r" (a) : "r" (a), "r" (b) : "r2", "r3"); return(a); } |
When compiling, GCC would then spew out this message:
Error: selected processor does not support `smull r4,r5,r0,r0'
Error: selected processor does not support `smull r4,r5,r1,r1'
Anyone could point out any work-arounds for this? I appreciate the help, thanks.