|| at Nov 26, 2012 at 3:28 pm
The SHLD instruction ("SHLD-Double Precision Shift Left")  was simply
an example of a platform specific instruction which is to my knowledge
only available on x86 processors.
I was unable to locate it in the assembly lexer:http://golang.org/src/cmd/6a/lex.c
Based on the current naming convention it should probably have been
named something along the lines of "SHLDQ", "SHLDL" and "SHLDW".
Having a unified format for src, dst operands makes sence. Are there any
plans to provide any documentation of the assembly syntax? That would be
/Daniel and Robin
On 11/26/2012 04:02 PM, Russ Cox wrote:
The assembly syntax is not really platform-independent. It is,
however, somewhat unified to make things look more regular across
different architectures, primarily for our own sanity. For example,
instruction arguments are always src, dst, regardless of what the
manufacturer's assembler does.
The specific instructions you are looking for already exist. Look in
math/big/arith_amd64.s for DX:AX to find examples. I fully admit you'd
never have guessed that syntax: the assembler is woefully
underdocumented. However, this is also a bit of a special case. Most
of the instructions are easier to find.