Source file test/simd/bug3.go

     1  // run -gcflags=all=-d=checkptr
     2  
     3  //go:build goexperiment.simd && amd64
     4  
     5  // Copyright 2026 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.
     8  
     9  // Test case for issue #78413.
    10  
    11  package main
    12  
    13  import (
    14  	"simd/archsimd"
    15  )
    16  
    17  //go:noinline
    18  func F() []int32 {
    19  	return []int32{0}
    20  }
    21  
    22  func main() {
    23  	archsimd.LoadInt32x8SlicePart(F())
    24  }
    25  

View as plain text