I'm trying to use simd instructions in asm go files to optimize some code.
I'm using *_amd64.s files and the common instructions work fine, but not
those on xmm registers.
APUNPCKLBW X0, X15
APUNPCKLBW (AX), X0
APACKUSWB X2, X0 which returns "syntax error, last name: X2"
I've looked briefly at http://golang.org/src/cmd/6l/optab.c and those seems
to be defined, and seem to map to punpcklbw and packuswb respectively.
Those should be able to take to xmm registers as arguments.
Am i missing something or should I revert to *write* the bytecode directly
for those ?
#define PSHUFD_X0_X3_ BYTE $0x66; BYTE $0x0f; BYTE $0x70; BYTE $0xd8
as seen in http://golang.org/src/pkg/crypto/aes/asm_amd64.s
I'd like to avoid this because it would force me to reinvent the wheel.
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.