Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for asmCheck (0.26 sec)

  1. test/codegen/issue66585.go

    // asmcheck
    
    // Copyright 2024 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.
    
    package p
    
    var x = func() int {
    	n := 0
    	f(&n)
    	return n
    }()
    
    func f(p *int) {
    	*p = 1
    }
    
    var y = 1
    
    // z can be static initialized.
    //
    // amd64:-"MOVQ"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:12:59 UTC 2024
    - 336 bytes
    - Viewed (0)
  2. test/codegen/issue58166.go

    // asmcheck
    
    // Copyright 2023 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.
    
    package p
    
    func dgemmSerialNotNot(m, n, k int, a []float64, lda int, b []float64, ldb int, c []float64, ldc int, alpha float64) {
    	for i := 0; i < m; i++ {
    		ctmp := c[i*ldc : i*ldc+n]
    		for l, v := range a[i*lda : i*lda+k] {
    			tmp := alpha * v
    			if tmp != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 01 18:41:07 UTC 2023
    - 554 bytes
    - Viewed (0)
  3. test/codegen/issue61356.go

    // asmcheck
    
    // Copyright 2023 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 this code doesn't generate spill/restore.
    
    package codegen
    
    func pack20(in *[20]uint64) uint64 {
    	var out uint64
    	out |= 4
    	// amd64:-`.*SP.*`
    	out |= in[0] << 4
    	// amd64:-`.*SP.*`
    	out |= in[1] << 7
    	// amd64:-`.*SP.*`
    	out |= in[2] << 10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 26 17:19:14 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. test/codegen/structs.go

    // asmcheck
    
    //go:build !goexperiment.cgocheck2
    
    // Copyright 2018 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.
    
    package codegen
    
    // This file contains code generation tests related to the handling of
    // struct types.
    
    // ------------- //
    //    Zeroing    //
    // ------------- //
    
    type Z1 struct {
    	a, b, c int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 923 bytes
    - Viewed (0)
  5. test/codegen/issue63332.go

    // asmcheck
    
    // Copyright 2023 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.
    
    package codegen
    
    func issue63332(c chan int) {
    	x := 0
    	// amd64:-`MOVQ`
    	x += 2
    	c <- x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:34:12 UTC 2023
    - 264 bytes
    - Viewed (0)
  6. test/codegen/writebarrier.go

    // asmcheck
    
    // Copyright 2023 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.
    
    package codegen
    
    func combine2string(p *[2]string, a, b string) {
    	// amd64:`.*runtime[.]gcWriteBarrier4\(SB\)`
    	// arm64:`.*runtime[.]gcWriteBarrier4\(SB\)`
    	p[0] = a
    	// amd64:-`.*runtime[.]gcWriteBarrier`
    	// arm64:-`.*runtime[.]gcWriteBarrier`
    	p[1] = b
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 00:16:06 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. test/codegen/issue42610.go

    // asmcheck
    
    // Copyright 2020 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.
    
    // Don't allow 0 masks in shift lowering rules on ppc64x.
    // See issue 42610.
    
    package codegen
    
    func f32(a []int32, i uint32) {
            g := func(p int32) int32 {
                    i = uint32(p) * (uint32(p) & (i & 1))
                    return 1
            }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 27 18:24:12 UTC 2023
    - 623 bytes
    - Viewed (0)
  8. test/codegen/atomics.go

    // asmcheck
    
    // Copyright 2024 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.
    
    // These tests check that atomic instructions without dynamic checks are
    // generated for architectures that support them
    
    package codegen
    
    import "sync/atomic"
    
    type Counter struct {
    	count int32
    }
    
    func (c *Counter) Increment() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 728 bytes
    - Viewed (0)
  9. test/codegen/issue60673.go

    // asmcheck
    
    // Copyright 2023 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.
    
    package codegen
    
    //go:noinline
    func f(x int32) {
    }
    
    func g(p *int32) {
    	// argument marshaling code should live at line 17, not line 15.
    	x := *p
    	// 386: `MOVL\s[A-Z]+,\s\(SP\)`
    	f(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 20:34:37 UTC 2023
    - 360 bytes
    - Viewed (0)
  10. test/codegen/constants.go

    // asmcheck
    
    // Copyright 2023 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.
    
    package codegen
    
    // A uint16 or sint16 constant shifted left.
    func shifted16BitConstants(out [64]uint64) {
    	// ppc64x: "MOVD\t[$]8193,", "SLD\t[$]27,"
    	out[0] = 0x0000010008000000
    	// ppc64x: "MOVD\t[$]-32767", "SLD\t[$]26,"
    	out[1] = 0xFFFFFE0004000000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 14:03:32 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top