1 // asmcheck -gcflags=-spectre=index
5 // Copyright 2020 The Go Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style
7 // license that can be found in the LICENSE file.
11 func IndexArray(x *[10]int, i int) int {
16 func IndexString(x string, i int) byte {
17 // amd64:`CMOVQ(LS|CC)`
21 func IndexSlice(x []float64, i int) float64 {
22 // amd64:`CMOVQ(LS|CC)`
26 func SliceArray(x *[10]int, i, j int) []int {
31 func SliceString(x string, i, j int) string {
36 func SliceSlice(x []float64, i, j int) []float64 {