mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] cmd/compile: add simd VPEXTRA*
This CL is generated by simdgen CL 683836 and this CL should be submitted after its generator. Change-Id: I1aa893b185826ad1f9fb60b85c75eda31f70623b Reviewed-on: https://go-review.googlesource.com/c/go/+/683797 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
0d8cb89f5c
commit
7fadfa9638
9 changed files with 322 additions and 0 deletions
|
|
@ -183,6 +183,16 @@ func TestSlicesInt8SetElem(t *testing.T) {
|
|||
checkInt8Slices(t, a, b)
|
||||
}
|
||||
|
||||
func TestSlicesInt8GetElem(t *testing.T) {
|
||||
a := []int8{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32}
|
||||
v := simd.LoadInt8x16Slice(a)
|
||||
e := v.GetElem(2)
|
||||
if e != a[2] {
|
||||
t.Errorf("GetElem(2) = %d != a[2] = %d", e, a[2])
|
||||
}
|
||||
|
||||
}
|
||||
func TestSlicesInt8TooShortLoad(t *testing.T) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue