|
| 1 | +// Copyright 2025 The Go Authors. All rights reserved. |
| 2 | +// Use of this source code is governed by a BSD-style |
| 3 | +// license that can be found in the LICENSE file. |
| 4 | + |
| 5 | +//go:build goexperiment.simd && amd64 |
| 6 | + |
| 7 | +// This exposes some internal interfaces to simd_test. |
| 8 | + |
| 9 | +package simd |
| 10 | + |
| 11 | +func (x Int64x2) ExportTestConcatSelectedConstant(indices uint8, y Int64x2) Int64x2 { |
| 12 | + return x.concatSelectedConstant(indices, y) |
| 13 | +} |
| 14 | + |
| 15 | +func (x Float64x4) ExportTestConcatSelectedConstantGrouped(indices uint8, y Float64x4) Float64x4 { |
| 16 | + return x.concatSelectedConstantGrouped(indices, y) |
| 17 | +} |
| 18 | + |
| 19 | +func (x Float32x4) ExportTestConcatSelectedConstant(indices uint8, y Float32x4) Float32x4 { |
| 20 | + return x.concatSelectedConstant(indices, y) |
| 21 | +} |
| 22 | + |
| 23 | +func (x Int32x4) ExportTestConcatSelectedConstant(indices uint8, y Int32x4) Int32x4 { |
| 24 | + return x.concatSelectedConstant(indices, y) |
| 25 | +} |
| 26 | + |
| 27 | +func (x Uint32x8) ExportTestConcatSelectedConstantGrouped(indices uint8, y Uint32x8) Uint32x8 { |
| 28 | + return x.concatSelectedConstantGrouped(indices, y) |
| 29 | +} |
| 30 | + |
| 31 | +func (x Int32x8) ExportTestConcatSelectedConstantGrouped(indices uint8, y Int32x8) Int32x8 { |
| 32 | + return x.concatSelectedConstantGrouped(indices, y) |
| 33 | +} |
| 34 | + |
| 35 | +func (x Int32x8) ExportTestTern(table uint8, y Int32x8, z Int32x8) Int32x8 { |
| 36 | + return x.tern(table, y, z) |
| 37 | +} |
| 38 | + |
| 39 | +func (x Int32x4) ExportTestTern(table uint8, y Int32x4, z Int32x4) Int32x4 { |
| 40 | + return x.tern(table, y, z) |
| 41 | +} |
| 42 | + |
| 43 | +func ExportTestCscImm4(a, b, c, d uint8) uint8 { |
| 44 | + return cscimm4(a, b, c, d) |
| 45 | +} |
| 46 | + |
| 47 | +const ( |
| 48 | + LLLL = _LLLL |
| 49 | + HLLL = _HLLL |
| 50 | + LHLL = _LHLL |
| 51 | + HHLL = _HHLL |
| 52 | + LLHL = _LLHL |
| 53 | + HLHL = _HLHL |
| 54 | + LHHL = _LHHL |
| 55 | + HHHL = _HHHL |
| 56 | + LLLH = _LLLH |
| 57 | + HLLH = _HLLH |
| 58 | + LHLH = _LHLH |
| 59 | + HHLH = _HHLH |
| 60 | + LLHH = _LLHH |
| 61 | + HLHH = _HLHH |
| 62 | + LHHH = _LHHH |
| 63 | + HHHH = _HHHH |
| 64 | +) |
0 commit comments