]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: fix parsing of the s390x VLE{G,F,H,B} instructions
authorMichael Munday <munday@ca.ibm.com>
Tue, 27 Sep 2016 14:29:43 +0000 (10:29 -0400)
committerMichael Munday <munday@ca.ibm.com>
Tue, 27 Sep 2016 16:01:11 +0000 (16:01 +0000)
commit413f1ef4de98f2e98853c3753f785871bfc32e5d
treeaab4fca44b48e635a6b6d0833820b2cfb16e728b
parenta30b5a3d1916deb6e366aa4557d6c21eb835d737
cmd/asm: fix parsing of the s390x VLE{G,F,H,B} instructions

This commit makes the assembler frontend reorder the operands so that
they are in the order the backend expects. The index should be first
for consistency with the other vector instructions.

Before this commit no operand order would have been accepted so this
isn't a breaking change.

Change-Id: I188d57eeb338d27fa1fa6845de0d6d1521b7a6c3
Reviewed-on: https://go-review.googlesource.com/29855
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bill O'Farrell <billotosyr@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/asm/internal/arch/s390x.go
src/cmd/asm/internal/asm/testdata/s390x.s