mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] cmd/compile, simd: added methods for "float" GetElem
This also required a "always use operation with least OverrideBase" filter in choosing the machine instructions. The order of generated HW operations is slightly modified because the Float version of GetElem appears earlier in the sorted operations list, though it is not chosen to generate the HW Op. Change-Id: I95fa67afca9c8b6f4f18941fdcaf69afdad8055b Reviewed-on: https://go-review.googlesource.com/c/go/+/696375 Reviewed-by: Junyang Shao <shaojunyang@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
7380213a4e
commit
9a934d5080
11 changed files with 122 additions and 43 deletions
|
|
@ -1128,10 +1128,10 @@ func ssaGenSIMDValue(s *ssagen.State, v *ssa.Value) bool {
|
|||
ssa.OpAMD64VPINSRW128:
|
||||
p = simdVgpvImm8(s, v)
|
||||
|
||||
case ssa.OpAMD64VPEXTRB128,
|
||||
ssa.OpAMD64VPEXTRW128,
|
||||
ssa.OpAMD64VPEXTRD128,
|
||||
ssa.OpAMD64VPEXTRQ128:
|
||||
case ssa.OpAMD64VPEXTRD128,
|
||||
ssa.OpAMD64VPEXTRQ128,
|
||||
ssa.OpAMD64VPEXTRB128,
|
||||
ssa.OpAMD64VPEXTRW128:
|
||||
p = simdVgpImm8(s, v)
|
||||
|
||||
case ssa.OpAMD64VGF2P8AFFINEINVQBMasked128,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue