]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix assemble stxr/stxrw/stxrb/stxrh bug
authorfanzha02 <fannie.zhang@arm.com>
Wed, 14 Jun 2017 06:24:18 +0000 (06:24 +0000)
committerCherry Zhang <cherryyz@google.com>
Tue, 15 Aug 2017 14:05:29 +0000 (14:05 +0000)
commit6e8b10397b824b0064ff92977bd379b332a24da4
treea0ad099ba6845b92cd09eb63beea8281c6c0ecfa
parent4282ba0a6571abca6878d91711aee50fefc2c69b
cmd/internal/obj/arm64: fix assemble stxr/stxrw/stxrb/stxrh bug

The stxr/stxrw/stxrb/stxrh instructions belong to STLXR-like instructions
set and they require special handling. The current code has no special
handling for those instructions.

The fix adds the special handling for those instructions.

Uncomment stxr/stxrw/stxrb/stxrh test cases.

Fixes #21397
Change-Id: I31cee29dd6b30b1c25badd5c7574dda7a01bf016
Reviewed-on: https://go-review.googlesource.com/54951
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/internal/arch/arm64.go
src/cmd/asm/internal/asm/testdata/arm64enc.s