diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2020-02-17 17:47:34 -0800 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2020-02-28 14:52:13 +0000 |
commit | 2cf3ebaf3db5b23a56e2ee62ecd76748dfbb5b8e (patch) | |
tree | 30cba46e046426f7c9937df9cd189fbc1a4aab7f /src/cmd/compile/internal/ssa/opGen.go | |
parent | 8955a56da015890f317d5f6919391503b854d93a (diff) | |
download | go-2cf3ebaf3db5b23a56e2ee62ecd76748dfbb5b8e.tar.gz go-2cf3ebaf3db5b23a56e2ee62ecd76748dfbb5b8e.zip |
cmd/compile: add dedicated ARM64BitField aux type
The goal here is improved AuxInt printing in ssa.html.
Instead of displaying an inscrutable encoded integer,
it displays something like
v25 (28) = UBFX <int> [lsb=4,width=8] v52
which is much nicer for debugging.
Change-Id: I40713ff7f4a857c4557486cdf73c2dff137511ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/221420
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/opGen.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/opGen.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/compile/internal/ssa/opGen.go b/src/cmd/compile/internal/ssa/opGen.go index b951065e7c..1111316d9b 100644 --- a/src/cmd/compile/internal/ssa/opGen.go +++ b/src/cmd/compile/internal/ssa/opGen.go @@ -17359,7 +17359,7 @@ var opcodeTable = [...]opInfo{ }, { name: "BFI", - auxType: auxInt64, + auxType: auxARM64BitField, argLen: 2, resultInArg0: true, asm: arm64.ABFI, @@ -17375,7 +17375,7 @@ var opcodeTable = [...]opInfo{ }, { name: "BFXIL", - auxType: auxInt64, + auxType: auxARM64BitField, argLen: 2, resultInArg0: true, asm: arm64.ABFXIL, @@ -17391,7 +17391,7 @@ var opcodeTable = [...]opInfo{ }, { name: "SBFIZ", - auxType: auxInt64, + auxType: auxARM64BitField, argLen: 1, asm: arm64.ASBFIZ, reg: regInfo{ @@ -17405,7 +17405,7 @@ var opcodeTable = [...]opInfo{ }, { name: "SBFX", - auxType: auxInt64, + auxType: auxARM64BitField, argLen: 1, asm: arm64.ASBFX, reg: regInfo{ @@ -17419,7 +17419,7 @@ var opcodeTable = [...]opInfo{ }, { name: "UBFIZ", - auxType: auxInt64, + auxType: auxARM64BitField, argLen: 1, asm: arm64.AUBFIZ, reg: regInfo{ @@ -17433,7 +17433,7 @@ var opcodeTable = [...]opInfo{ }, { name: "UBFX", - auxType: auxInt64, + auxType: auxARM64BitField, argLen: 1, asm: arm64.AUBFX, reg: regInfo{ |