Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for asmCheck (0.24 sec)

  1. test/codegen/issue48054.go

    // asmcheck
    
    // Copyright 2021 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 a(n string) bool {
    	// arm64:"CBZ"
    	if len(n) > 0 {
    		return true
    	}
    	return false
    }
    
    func a2(n []int) bool {
    	// arm64:"CBZ"
    	if len(n) > 0 {
    		return true
    	}
    	return false
    }
    
    func a3(n []int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 08 14:51:40 UTC 2021
    - 464 bytes
    - Viewed (0)
  2. 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)
  3. test/codegen/select.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.
    
    package codegen
    
    func f() {
    	ch1 := make(chan int)
    	ch2 := make(chan int)
    	for {
    		// amd64:-`MOVQ\t[$]0, command-line-arguments..autotmp_3`
    		select {
    		case <-ch1:
    		case <-ch2:
    		default:
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 18:19:47 UTC 2022
    - 373 bytes
    - Viewed (0)
  4. 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)
  5. test/codegen/zerosize.go

    // asmcheck
    
    // 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.
    
    // Make sure a pointer variable and a zero-sized variable
    // aren't allocated to the same stack slot.
    // See issue 24993.
    
    package codegen
    
    func zeroSize() {
    	c := make(chan struct{})
    	// amd64:`MOVQ\t\$0, command-line-arguments\.s\+56\(SP\)`
    	var s *int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 18:19:47 UTC 2022
    - 650 bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top