Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
fanzha02 8223c7e5dc arm64/arm64asm: complement ARM64 disassembler Go syntax
Because some instructions like ADD(extended register) have been handled
by assembler, but disassembler still has incorrect Go syntax for those
instructions.

This patch complements the unimplemented Go syntax in disassembler and
separates the cases.txt into two test files (gnucases.txt and
plan9cases.txt), so that the Go syntax test will be easier. The cases
added in the plan9cases.txt file can handled by current
disassembler.

Change-Id: Ie3e0d04700fc85da8bd1758a249ec7a7f7a5a117
Reviewed-on: https://go-review.googlesource.com/98398
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-04-11 14:38:00 +00:00
Tobias Klauser 5099b4b992 all: use io.SeekStart constant instead of 0
Change-Id: Ie91f539c896ddd92d4a039a237468fabdc3cf408
Reviewed-on: https://go-review.googlesource.com/105076
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-06 14:08:48 +00:00
Russ Cox ffd22fb365 arm64/arm64asm: avoid log.Fatal during test
Especially log.Fatal(err) where err came back from exec.Command.Run.
It prints no additional information and is very confusing for the test
to die printing 'exit status 1'.

For golang/go#21486.

Change-Id: I8675667838319a4d5697e596244bea514509894d
Reviewed-on: https://go-review.googlesource.com/56971
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2017-08-18 16:05:31 +00:00
Wei Xiao f40095975f x/arch/arm64: implement arm64 disassembler
- Add support for all basic instructions (except for the following
  6 system instructions: AT, DC, HVC, SMC, SYS and TLBI)
- Add support for all FP basic instructions
- Add support for all SIMD instructions (plan9 syntax refer to CL 41654)
- Add cases for testing all instructions and comparing disassembly result
  with external disassembler (by gnu syntax)

Disassembler framework is mainly contributed by Zheng Xu <zheng.xu@arm.com>
Testing and bug fixing are mainly contributed by Fannie Zhang <fannie.zhang@arm.com>
Other parts (such as decoder table and argument) are mainly contributed by Wei Xiao <wei.xiao@arm.com>

Fixes #19157

Change-Id: I76b6b075f487857124c8ca774a12d764d4ee85c7
Reviewed-on: https://go-review.googlesource.com/43651
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2017-07-11 12:56:41 +00:00