Debian Codegraph @

test/fixedbugs/issue22429.go

raw
1 // compile
2
3 // Copyright 2017 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 // Make sure SSA->assembly pass can handle SP as an index register.
8
9 package p
10
11 type T struct {
12 a,b,c,d float32
13 }
14
15 func f(a *[8]T, i,j,k int) float32 {
16 b := *a
17 return b[i].a + b[j].b + b[k].c
18 }