Source file test/codegen/memcombine_simd.go

     1  // asmcheck
     2  //go:build goexperiment.simd
     3  
     4  // Copyright 2026 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  package codegen
     9  
    10  import "simd/archsimd"
    11  
    12  // TODO: Move these tests to memcombine.go when GOEXPERIMENT=simd becomes the default
    13  func dwloadInt64x2(p *struct{ a, b archsimd.Int64x2 }) (archsimd.Int64x2, archsimd.Int64x2) {
    14  	// arm64:"FLDPQ "
    15  	return p.a, p.b
    16  }
    17  
    18  func dwstoreInt64x2(p *struct{ a, b archsimd.Int64x2 }, a, b archsimd.Int64x2) {
    19  	// arm64:`FSTPQ\s\(F[0-9]+, F[0-9]+\), \(R[0-9]+\)`
    20  	p.a = a
    21  	p.b = b
    22  }
    23  

View as plain text