The immediate goes first, like this:

SHUFPD $1, X1, X2

Note that SHUFPD takes an immediate for the shuffle - I don't see how you 
can implement the function you want; it takes a dynamic shuffle argument.
Unless you do a switch on all possible values of the immediate.

On Tuesday, June 13, 2017 at 11:57:20 PM UTC-7, Zhuo Meng wrote:
>
> The SHUFPD opcode needs X1, X2, ib three arguments, but I want to make a 
> Go function like 
>
> shufpd(x1, x2 interface{}, imm8u uint8)
>
> and I hope the asm file like 
>
> SHUFPD X1, X2, imm+48(FP)
>
> but it doesn't work, any suggestion?
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to