Source file test/codegen/issue58166.go

     1  // asmcheck
     2  
     3  // Copyright 2023 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  package p
     8  
     9  func dgemmSerialNotNot(m, n, k int, a []float64, lda int, b []float64, ldb int, c []float64, ldc int, alpha float64) {
    10  	for i := 0; i < m; i++ {
    11  		ctmp := c[i*ldc : i*ldc+n]
    12  		for l, v := range a[i*lda : i*lda+k] {
    13  			tmp := alpha * v
    14  			if tmp != 0 {
    15  				x := b[l*ldb : l*ldb+n]
    16  				// amd64:"INCQ"
    17  				for i, v := range x {
    18  					ctmp[i] += tmp * v
    19  				}
    20  			}
    21  		}
    22  	}
    23  }
    24  

View as plain text