This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
MIPS: Disabling "div" traps in GAS
- From: "Marshall B. Rogers" <mbr at 64 dot vg>
- To: binutils at sourceware dot org
- Date: Sun, 17 Jan 2010 13:48:15 +0100
- Subject: 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