do the Shufps

DSP related issues, mathematics, processing and techniques
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: do the Shufps

Post by tulamide »

Spogg wrote:
tulamide wrote:Am I ignored, or does nobody know?


Definitely ignored. :lol:

We need a “I read your post but I know nothing" button!

;) :D
"There lies the dog buried" (German saying translated literally)
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: do the Shufps

Post by RJHollins »

Does it come with a T-Shirt ?
User avatar
HughBanton
Posts: 265
Joined: Sat Apr 12, 2008 3:10 pm
Location: Evesham, Worcestershire
Contact:

Re: do the Shufps

Post by HughBanton »

RJHollins wrote:
Does it come with a T-Shirt ?

[Button pushed :] "I read your post but I know nerrthing" :lol: (now I'll await the FS T-Shirt ...)

I confess I speed-read the Intel Words that Tula posted and didn't spot that it was actually so garbled; looks like a serious bit of copying-and-pasting gone wrong. With several "from's", "of the's" and "to's" missing altogether. I assume what they were trying to say was :

The source operand can be an XXM register or a 128-bit memory location. The destination operand is an XMM register. The select operand is an 8-bit immediate:
bits 0 and 1 select the value to be moved from the source operand to the destination operand of the low doubleword of the result,
bits 2 and 3 select the value to be moved from the source operand to the destination operand of the second doubleword of the result,
bits 4 and 5 select the value to be moved from the source operand to the destination operand of the third doubleword of the result,
and bits 6 and 7 select the value to be moved from the source operand to the destination operand of the high doubleword of the result.

Well, at least it's in English now, but is it backwards?

Is all Intel documentation written like this? .. it could easily confuse a stupid person :roll:

H
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: do the Shufps

Post by martinvicanek »

HughBanton wrote:Is all Intel documentation written like this? .. it could easily confuse a stupid person :roll:

It did confuse me! Hmm... :?
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: do the Shufps

Post by Spogg »

martinvicanek wrote:
HughBanton wrote:Is all Intel documentation written like this? .. it could easily confuse a stupid person :roll:

It did confuse me! Hmm... :?


Then there’s no hope for the rest of us.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: do the Shufps

Post by tulamide »

Spogg wrote:
martinvicanek wrote:
HughBanton wrote:Is all Intel documentation written like this? .. it could easily confuse a stupid person :roll:

It did confuse me! Hmm... :?


Then there’s no hope for the rest of us.

Indeed! If we can't rely on Martin, we will all fail!
"There lies the dog buried" (German saying translated literally)
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: do the Shufps

Post by tulamide »

Ok, so I went to Intel and found this pdf "Intel 64 and IA-32 Architectures Software Developer's Manual Volume 2: Instruction Set Reference, A-Z" (what a title!)

It is the newest I could find. It describes what we are using (shufps) as "128-bit Legacy SSE version". It is much more ordered and sorted and formulated, but it is even more confusing for me. And good luck finding the IMM8 bitmasks! They just refer to it as "provides 4 select controls for each element of the destination" :roll:

You will find it on page 1274ff

https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf
"There lies the dog buried" (German saying translated literally)
deraudrl
Posts: 239
Joined: Thu Nov 28, 2019 9:12 pm
Location: SoCal

Re: do the Shufps

Post by deraudrl »

HughBanton wrote:Is all Intel documentation written like this? .. it could easily confuse a stupid person :roll:

Yes. That's not a bug, it's a feature. 8-)

(Still better than Unix/Solaris 'man' pages though...)
I keep a pair of oven mitts next to my computer so I don't get a concussion from slapping my forehead while I'm reading the responses to my questions.
Post Reply