diff options
| author | Ben Shi <powerman1st@163.com> | 2017-10-14 14:02:05 +0000 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2017-10-17 15:18:12 +0000 |
| commit | 47193dcc0c91a6e1a2d6f58d55b123fa626c19d6 (patch) | |
| tree | 26de64b77163b9a668b2e255aee6fe967778cb9c /src/database/sql | |
| parent | f4faca60135bea528a29f454876efa642b00665e (diff) | |
| download | go-47193dcc0c91a6e1a2d6f58d55b123fa626c19d6.tar.xz | |
cmd/internal/obj/arm: better solution of .S/.P/.U/.W suffix check
Current suffix check is based on instruction, which is not very
accurate. For example, "MOVW.S R1, R2" is valid, but
"MOVW.S $0xaaaaaaaa, R1" and "MOVW.P CPSR, R9" are not.
This patch fixes the above kinds of issues by checking suffix
based on []optab. And also more test cases are added.
fixes #20509
Change-Id: Ibad91be72c78eefa719412a83b4d44370d2202a8
Reviewed-on: https://go-review.googlesource.com/70910
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')
0 files changed, 0 insertions, 0 deletions
