diff options
| author | Ben Shi <powerman1st@163.com> | 2017-05-27 10:00:55 +0000 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2017-06-05 17:03:54 +0000 |
| commit | c8ab8c1f99123173aa8840f82f2eb947f7353617 (patch) | |
| tree | e3773cf8e79459c23ef112610e0dbed526afa1cd /src/database/sql/sql_test.go | |
| parent | 3cc2da6397e5ca8efd5d0cf3e919f33bc74dc4b6 (diff) | |
| download | go-c8ab8c1f99123173aa8840f82f2eb947f7353617.tar.xz | |
cmd/internal/obj/arm: fix constant decomposition
There are two issues in constant decomposition.
1. A typo in "func immrot2s" blocks "case 107" of []optab be triggered.
2. Though "ADD $0xffff, R0, R0" is decomposed to "ADD $0xff00, R0, R0" and
"ADD $0x00ff, R0, R0" as expected, "ADD $0xffff, R0" still uses the
constant pool, which should be the same as "ADD $0xffff, R0, R0".
This patch fixes them and adds more instruction encoding tests.
fix #20516
Change-Id: Icd7bdfa1946b29db15580dcb429111266f1384c6
Reviewed-on: https://go-review.googlesource.com/44335
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions
