This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/DRA829V: SDIV instruction gives "illegal mnumonic error"

Part Number: DRA829V


Tool/software: TI C/C++ Compiler

Hi,

I am trying to generate a divide-by-zero exception with following code:

__asm("    mov r0, #0 ");
__asm("    sdiv {r0}, r0, r0 ");

But I get the following error from ti-arm:

[E0002] Illegal mnemonic specified
            sdiv {r0}, r0, r0

Please let me know how can I fix this issue.

thanks,
Rizwan