]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: merge ANDconst and UBFX into UBFX on arm64
authorfanzha02 <fannie.zhang@arm.com>
Tue, 3 Nov 2020 09:31:04 +0000 (17:31 +0800)
committerFannie Zhang <Fannie.Zhang@arm.com>
Fri, 25 Mar 2022 01:24:44 +0000 (01:24 +0000)
commit8ab42a945aef7c09189a60263c4450a65bc00a47
treeafdcb50de88a5aa95abf5a24aa687188de4672b5
parenta10a209b23f877c80d8a5f3ebda1ce4b492ac3a9
cmd/compile: merge ANDconst and UBFX into UBFX on arm64

Add a new rewrite rule to merge ANDconst and UBFX into
UBFX.

Add test cases.

Change-Id: I24d6442d0c956d7ce092c3a3858d4a3a41771670
Reviewed-on: https://go-review.googlesource.com/c/go/+/377054
Trust: Fannie Zhang <Fannie.Zhang@arm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/rewriteARM64.go
test/codegen/bitfield.go