1
0
mirror of https://github.com/golang/go synced 2024-11-14 09:10:27 -07:00
go/src/cmd
Ben Shi b8a4eb4bd8 cmd/internal/obj/arm: fix illegal forms of ARM VFP instruction
"ADDF F0, R1, F2" is silently accepted by the arm assembler and
assembled to the same binary code of "ADDF F0, F1, F2". So does
"CMPF F0, R1".

"ABSF F0, F1, F2" is also silently accepted and assembled to a
different instruction.

This patch reports those illegal forms and adds test cases.

fix #20464

Change-Id: I88b80dc29de24c6266ac7bf7bce1578c5adbc68c
Reviewed-on: https://go-review.googlesource.com/43931
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2017-05-25 14:32:35 +00:00
..
addr2line cmd/go: build test binaries with -s in addition to -w 2017-03-29 17:18:16 +00:00
api api: promote next.txt to go1.8.txt, update go tool 2016-12-01 02:54:21 +00:00
asm cmd/internal/obj/arm: fix illegal forms of ARM VFP instruction 2017-05-25 14:32:35 +00:00
cgo cmd/cgo: support indirect macro expansion for string 2017-05-23 22:19:51 +00:00
compile cmd/compile: test for moving spills 2017-05-24 21:36:06 +00:00
cover cmd/cover: fix spelling mistake 2016-12-20 04:45:25 +00:00
dist runtime: fix ppc64le c-archive init 2017-05-24 22:28:33 +00:00
doc cmd/doc: implement "go doc struct.field" 2017-03-22 05:37:50 +00:00
fix cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
go cmd/go: include GOARM and GO386 in computed build ID 2017-05-23 21:39:36 +00:00
gofmt cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
internal cmd/internal/obj/arm: fix illegal forms of ARM VFP instruction 2017-05-25 14:32:35 +00:00
link cmd/compile: output DWARF lexical blocks for local variables 2017-05-18 23:10:50 +00:00
nm all: fix some printf format strings 2017-02-14 02:09:30 +00:00
objdump cmd/internal/objabi: fix the bug of shrinking SymType down to a uint8 2017-05-16 12:26:10 +00:00
pack all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
pprof cmd/pprof: update README to explain relationship with github.com/google/pprof 2017-04-10 19:51:01 +00:00
trace cmd/trace: document that trace viewer is only tested on chromium 2017-04-20 16:44:55 +00:00
vendor cmd/vendor/arch/x86: pull new version from x repo 2017-04-20 22:39:48 +00:00
vet internal/cpu: new package to detect cpu features 2017-05-10 17:02:21 +00:00