qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] TCG: 128 bit ops?
@ 2008-09-04 11:10 Andreas Färber
  2008-09-04 14:35 ` Aurelien Jarno
  2008-09-07 14:01 ` Paul Brook
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Färber @ 2008-09-04 11:10 UTC (permalink / raw)
  To: qemu-devel

Hello,

Am I correct in seeing that TCG offers no i128 ops? Would this be  
useful to add to TCG, internally reusing the i64/i32 code? ppc needs  
128-bit temporaries for Altivec instructions. It uses a union  
ppc_avr_t of (among others) two uint64_t.

Or should I just use two i64 temporaries with a local macro/helper?
It's not used much in ppc but I thought it might be useful to share  
with other architectures.

Andreas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] TCG: 128 bit ops?
  2008-09-04 11:10 [Qemu-devel] TCG: 128 bit ops? Andreas Färber
@ 2008-09-04 14:35 ` Aurelien Jarno
  2008-09-04 15:30   ` Blue Swirl
  2008-09-07 14:01 ` Paul Brook
  1 sibling, 1 reply; 4+ messages in thread
From: Aurelien Jarno @ 2008-09-04 14:35 UTC (permalink / raw)
  To: qemu-devel

On Thu, Sep 04, 2008 at 01:10:39PM +0200, Andreas Färber wrote:
> Hello,
>
> Am I correct in seeing that TCG offers no i128 ops? Would this be useful 
> to add to TCG, internally reusing the i64/i32 code? ppc needs 128-bit 
> temporaries for Altivec instructions. It uses a union ppc_avr_t of (among 
> others) two uint64_t.
>
> Or should I just use two i64 temporaries with a local macro/helper?
> It's not used much in ppc but I thought it might be useful to share with 
> other architectures.
>

Currently TCG doesn't support i128 ops, but I also agree it would be
nice to have it. I think it can benefits for example to sparc64 which 
has 128-bit fp support.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] TCG: 128 bit ops?
  2008-09-04 14:35 ` Aurelien Jarno
@ 2008-09-04 15:30   ` Blue Swirl
  0 siblings, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2008-09-04 15:30 UTC (permalink / raw)
  To: qemu-devel

On 9/4/08, Aurelien Jarno <aurelien@aurel32.net> wrote:
> On Thu, Sep 04, 2008 at 01:10:39PM +0200, Andreas Färber wrote:
>  > Hello,
>  >
>  > Am I correct in seeing that TCG offers no i128 ops? Would this be useful
>  > to add to TCG, internally reusing the i64/i32 code? ppc needs 128-bit
>  > temporaries for Altivec instructions. It uses a union ppc_avr_t of (among
>  > others) two uint64_t.
>  >
>  > Or should I just use two i64 temporaries with a local macro/helper?
>  > It's not used much in ppc but I thought it might be useful to share with
>  > other architectures.
>  >
>
>
> Currently TCG doesn't support i128 ops, but I also agree it would be
>  nice to have it. I think it can benefits for example to sparc64 which
>  has 128-bit fp support.

I agree that i128 would be useful, though float32/64/80/128 would be
even more so.

Sparc (32 and 64) specifications have included 128 bit float ops since
day one, but so far they haven't been implemented in real CPUs.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] TCG: 128 bit ops?
  2008-09-04 11:10 [Qemu-devel] TCG: 128 bit ops? Andreas Färber
  2008-09-04 14:35 ` Aurelien Jarno
@ 2008-09-07 14:01 ` Paul Brook
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Brook @ 2008-09-07 14:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Färber

On Thursday 04 September 2008, Andreas Färber wrote:
> Hello,
>
> Am I correct in seeing that TCG offers no i128 ops? Would this be
> useful to add to TCG, internally reusing the i64/i32 code? ppc needs
> 128-bit temporaries for Altivec instructions. It uses a union
> ppc_avr_t of (among others) two uint64_t.
>
> Or should I just use two i64 temporaries with a local macro/helper?
> It's not used much in ppc but I thought it might be useful to share
> with other architectures.

Does it really have 128-bit ops, or just 128-bit vectors with smaller 
elements?

I expect that implementing native 128-bit support would end up fairly tricky. 
It's bad enough having to handle 64-bit ops 32-bit x86.

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-07 14:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-04 11:10 [Qemu-devel] TCG: 128 bit ops? Andreas Färber
2008-09-04 14:35 ` Aurelien Jarno
2008-09-04 15:30   ` Blue Swirl
2008-09-07 14:01 ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).