Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190911114655.GT9017@brightrain.aerifal.cx>
Date: Wed, 11 Sep 2019 07:46:55 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] mips: add single-instruction math functions

On Wed, Sep 11, 2019 at 01:05:04PM +0300, info@...ile-stream.com 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?

I think you don't want to get rid of it anyway, since if FPU emulation
is in use, emulation of floating point instructions in branch delay
slots is really problematic and requires nasty hacks with executable
stacks and whatnot. It would be nice if we could tell GCC not to put
the fpu instructions it generates in branch delay slots either, but I
don't know a way to do that.

Rich

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.