]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix assemble fcmp/fcmpe bug
authorfanzha02 <fannie.zhang@arm.com>
Tue, 13 Jun 2017 12:24:19 +0000 (12:24 +0000)
committerCherry Zhang <cherryyz@google.com>
Wed, 23 Aug 2017 15:59:34 +0000 (15:59 +0000)
commit8f1e2a2610765528068107e33ab0d1d2ff224ce3
tree2b0a2ff2398d20261edf65ea5022cf88c95eab19
parente974f4fddf385b81036609d6008b923377d18e99
cmd/internal/obj/arm64: fix assemble fcmp/fcmpe bug

The current code treats floating-point constant as integer
and does not treat fcmp/fcmpe as the comparison instrucitons
that requires special handling.

The fix corrects the type of immediate arguments and adds fcmp/fcmpe
in the special handing.

Uncomment the fcmp/fcmpe cases.

Fixes #21567
Change-Id: I6782520e2770f6ce70270b667dd5e68f71e2d5ad
Reviewed-on: https://go-review.googlesource.com/57852
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
src/cmd/internal/obj/arm64/asm7.go