]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix encoding of condition
authorWei Xiao <wei.xiao@arm.com>
Fri, 21 Apr 2017 07:59:07 +0000 (15:59 +0800)
committerCherry Zhang <cherryyz@google.com>
Thu, 27 Apr 2017 13:35:59 +0000 (13:35 +0000)
commit2b6c58f6d559ef2621f677e016aba08a6b8aad19
tree4e75f7f220909ef6d6710cfde6fcaf99f404cb66
parent220e0e0f7383a79fda0ba61bd1bf2076f5f74d72
cmd/internal/obj/arm64: fix encoding of condition

The current code treats condition as special register and write
its raw data directly into instruction.

The fix converts the raw data into correct condition encoding.
Also fix the operand catogery of FCCMP.

Add tests to cover all cases.

Change-Id: Ib194041bd9017dd0edbc241564fe983082ac616b
Reviewed-on: https://go-review.googlesource.com/41511
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/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/asm7.go