/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue22429.go
18 строк
369 B
Keith Randall
cmd/compile: make sure not to use SP as an index register
26 окт 2017, 05:45
26 окт 2017, 05:45
40649e6
Код
Авторство
О чём код?
// compile // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Make sure SSA->assembly pass can handle SP as an index register. package p type T struct { a,b,c,d float32 } func f(a *[8]T, i,j,k int) float32 { b := *a return b[i].a + b[j].b + b[k].c }