]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: convert rest ARM64.rules lines to typed aux mode
authorfanzha02 <fannie.zhang@arm.com>
Thu, 14 May 2020 09:01:11 +0000 (17:01 +0800)
committerKeith Randall <khr@golang.org>
Mon, 24 Aug 2020 14:38:38 +0000 (14:38 +0000)
commit85902b6786bbe40b297cbbf823f489b07c654bbd
tree6b7eabd4cdffc97c1af52a680e42b5cd1f100294
parent0e031676288ddd56fb410b6b27807a180a585db3
cmd/compile: convert rest ARM64.rules lines to typed aux mode

This patch adds the ARM6464Bitfield auxInt to auxIntType() and
returns its Go type as "arm64Bitfield" type, which is defined
as int16 type.

And the Go type of SymOff auxInt is int32, but some functions
(such as min(), areAdjacentOffsets() and read16/32/64(),etc.)
use SymOff as an input parameter and treat its type as int64,
this patch adds the type conversion for these rules.

Passes toolstash-check -all.

Change-Id: Ib234b48d0a97ef244dd37878e06b5825316dd782
Reviewed-on: https://go-review.googlesource.com/c/go/+/234378
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/ARM.rules
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/gen/rulegen.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewriteARM.go
src/cmd/compile/internal/ssa/rewriteARM64.go
src/cmd/compile/internal/ssa/value.go