mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile/internal/ssa/gen: implement OAND.
Before this patch there was only partial support for ANDQconst which was not lowered. This patch added support for AND operations for all bit sizes and signs. Change-Id: I3a6b2cddfac5361b27e85fcd97f7f3537ebfbcb6 Reviewed-on: https://go-review.googlesource.com/12761 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
c15b0e83d2
commit
edff881ce5
6 changed files with 300 additions and 32 deletions
|
|
@ -39,6 +39,15 @@ var genericOps = []opData{
|
|||
{name: "Mul64U"},
|
||||
{name: "MulPtr"}, // MulPtr is used for address calculations
|
||||
|
||||
{name: "And8"}, // arg0 & arg1
|
||||
{name: "And16"},
|
||||
{name: "And32"},
|
||||
{name: "And64"},
|
||||
{name: "And8U"},
|
||||
{name: "And16U"},
|
||||
{name: "And32U"},
|
||||
{name: "And64U"},
|
||||
|
||||
{name: "Lsh8"}, // arg0 << arg1
|
||||
{name: "Lsh16"},
|
||||
{name: "Lsh32"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue