linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PIII-IV SSE instructions set
@ 2003-08-03  4:42 Rodrigo F. Baroni
  2003-08-03 14:22 ` Maciej Hrebien
  0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo F. Baroni @ 2003-08-03  4:42 UTC (permalink / raw)
  To: linux-assembly

Hello all,

    Does anybody knows if is possible to code in a
linux enviroment using the PIII-IV SSE (Stream SIMD
Extend) instructions set ?

    Some examples of SSE instructions are :

addps, addss
subps, subss
mulps, mulss
divps, divss
sqrtps, sqrtss
maxps, maxss
minps, minss
(...)

   And a code example follows  :

asm {
	push esi;
	push edi;
	; a is loaded into xmm1
	; b is loaded into xmm2
	mov xmm0, xmm1;
	mulps xmm0, xmm2;
	; store result into c
	pop edi;
        pop esi;
}


     Thanks a lot,

   Rodrigo F Baroni
Computer Science Bach's student.
 Sp, Brazil



_______________________________________________________________________
Conheça o novo Cadê? - Mais rápido, mais fácil e mais preciso.
Toda a web, 42 milhões de páginas brasileiras e nova busca por imagens!
http://www.cade.com.br
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: PIII-IV SSE instructions set
  2003-08-03  4:42 PIII-IV SSE instructions set Rodrigo F. Baroni
@ 2003-08-03 14:22 ` Maciej Hrebien
  0 siblings, 0 replies; 3+ messages in thread
From: Maciej Hrebien @ 2003-08-03 14:22 UTC (permalink / raw)
  To: linux-assembly

"Rodrigo F. Baroni" wrote:
> 
> Hello all,
> 
>     Does anybody knows if is possible to code in a
> linux enviroment using the PIII-IV SSE (Stream SIMD
> Extend) instructions set ?

Yes, it's possible if you have a kernel configured/compiled right so you
won't get "illegal instruction" while running your code and a cpu with
sse ;)
 
-- 
Maciej Hrebien


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

* Re: PIII-IV SSE instructions set
       [not found] <20030804035830.22925.qmail@web11107.mail.yahoo.com>
@ 2003-08-04  6:22 ` Maciej Hrebien
  0 siblings, 0 replies; 3+ messages in thread
From: Maciej Hrebien @ 2003-08-04  6:22 UTC (permalink / raw)
  To: linux-assembly, linux-assembly

"Rodrigo F. Baroni" wrote:
> 
> 
>    Little correction, :
> 
> >         #;---- here starts the sse instructions
> >         #; a is loaded into xmm1
> >         #; b is loaded into xmm2
> >         mov %xmm0, %xmm1;
>               ^      ^
> >         mulps %xmm0, %xmm2;
>                 ^      ^

mov isn't sse instr! Try movaps.

-- 
Maciej Hrebien


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

end of thread, other threads:[~2003-08-04  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-03  4:42 PIII-IV SSE instructions set Rodrigo F. Baroni
2003-08-03 14:22 ` Maciej Hrebien
     [not found] <20030804035830.22925.qmail@web11107.mail.yahoo.com>
2003-08-04  6:22 ` Maciej Hrebien

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).