Skip to content

Commit

Permalink
cmd/internal/obj/arm: Fix wrong assembly in the arm assembler
Browse files Browse the repository at this point in the history
As #19357 reported,

TST has 3 different sub forms
TST $imme, Rx
TST Ry << imme, Rx
TST Ry << Rz, Rx

just like CMP/CMN/TEQ has. But current arm assembler assembles all TST
instructions wrongly. This patch fixes it and adds more tests.

Fixes #19357

Change-Id: Iafedccfaab2cbb2631e7acf259837a782e2e8e2f
Reviewed-on: https://go-review.googlesource.com/37662
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
benshi001 authored and bradfitz committed Mar 23, 2017
1 parent c46226a commit d0ff9ec
Show file tree
Hide file tree
Showing 2 changed files with 665 additions and 6 deletions.

0 comments on commit d0ff9ec

Please sign in to comment.