Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 12 Sep 2019 13:57:25 -0400
From: Rich Felker <>
Subject: Re: [PATCH] mips: add single-instruction math functions

On Wed, Sep 11, 2019 at 01:05:04PM +0300, wrote:
> non-commit text:
> gcc puts annoying nop into the delay slot for these functions, e.g.:
> 	abs.d	$f0,$f12
> 	jr	$ra
> 	 nop
> is there any way to get rid of this without using pure .S?
> SQRT.fmt exists on MIPS II+ (float), MIPS III+ (double).
> ABS.fmt exists on MIPS I+ but only cores with ABS2008 flag in FCSR
> implement the required behaviour.

One other thing: can you confirm/cite that the mips sqrt instructions
are correctly-rounded? I would assume so but this needs checking since
there have been some low-end fpus that do things wrong (like early
pre-vfp ARM ones).


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.