Re: [PATCH] Add sparc VIS 2.0 builtins, intrinsics, and option to control them.

2011-10-03 Thread David Miller
From: Richard Henderson Date: Mon, 03 Oct 2011 09:49:37 -0700 > You might have a look at the "Vector Shuffle" thread, where we've been > trying to provide builtin-level access to this feature. We've not added > an rtx-level code for this because so far there isn't *that* much in > common between

Re: [PATCH] Add sparc VIS 2.0 builtins, intrinsics, and option to control them.

2011-10-03 Thread Richard Henderson
On 10/02/2011 10:28 PM, David Miller wrote: >> (set (reg:DI GSR_REG) >> (unspec:DI [(match_dup 1) (match_dup 2) (reg:DI GSR_REG)] >> UNSPEC_BMASK)) > > Actually, can't we just use a (zero_extend:DI (plus:SI ...)) for the > 32-bit case? It seems to work fine. Sure. >>>

Re: [PATCH] Add sparc VIS 2.0 builtins, intrinsics, and option to control them.

2011-10-02 Thread David Miller
From: Richard Henderson Date: Fri, 30 Sep 2011 14:03:52 -0700 > On 09/30/2011 12:59 AM, David Miller wrote: >> >>[ VIS 2.0 bmask patterns ] > > I think this is wrong. I think you want to model this as > > [(set (match_operand:DI 0 "register_operand" "=r") > (plus:DI (match_operand:DI

Re: [PATCH] Add sparc VIS 2.0 builtins, intrinsics, and option to control them.

2011-09-30 Thread David Miller
From: Richard Henderson Date: Fri, 30 Sep 2011 14:03:52 -0700 > (3) Use optimize-mode-switching to minimize the number of changes > to the global state. This includes the use of SIAM vs %fsr, > especially when a subroutine call could have changed the > global rounding mode.

Re: [PATCH] Add sparc VIS 2.0 builtins, intrinsics, and option to control them.

2011-09-30 Thread Joseph S. Myers
On Fri, 30 Sep 2011, Richard Henderson wrote: > Specifically, in-compiler support for #pragma STDC FENV_ACCESS and the > various routines. We ought to be able to track the rounding > mode (and other relevant parameters) on a per-expression basis, tagging > each floating-point operation with the

Re: [PATCH] Add sparc VIS 2.0 builtins, intrinsics, and option to control them.

2011-09-30 Thread Richard Henderson
On 09/30/2011 12:59 AM, David Miller wrote: > > I tried to add the 'siam' instruction too but that one is really > difficult because it influences the behavior of every float operation > and I couldnt' find an easy way to express those dependencies. I > tried a few easy approaches but I couldn't

[PATCH] Add sparc VIS 2.0 builtins, intrinsics, and option to control them.

2011-09-30 Thread David Miller
I tried to add the 'siam' instruction too but that one is really difficult because it influences the behavior of every float operation and I couldnt' find an easy way to express those dependencies. I tried a few easy approaches but I couldn't reliably keep the compiler from moving 'siam' across f