This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MIPS: Disabling "div" traps in GAS


Hi,

I've set "nomacro" (judging by the source code, I guess "nomacro" only
turns on warnings?) and "noat" but GAS expands "div" instructions into
a division-by-zero check. I've tried passing -mno-check-zero-division
to GCC, but it didn't help. The source file I'm assembling is a
disassembly of a binary which already has division-by-zero checks, if
that has anything to do with it. I'm using binutils 2.20.

I also noticed that in objdump -d the "DIV" instruction is shown with
3 operands, whereas it is only supposed to have two (see manual).
>     a30:       0153001a        div     zero,t2,s3

Regards,
Marshall


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]