Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for asmCheck (0.18 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. test/codegen/spectre.go

    // asmcheck -gcflags=-spectre=index
    
    //go:build amd64
    
    // 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 IndexArray(x *[10]int, i int) int {
    	// amd64:`CMOVQCC`
    	return x[i]
    }
    
    func IndexString(x string, i int) byte {
    	// amd64:`CMOVQ(LS|CC)`
    	return x[i]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 734 bytes
    - Viewed (0)
  9. test/codegen/ifaces.go

    // asmcheck
    
    // Copyright 2022 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
    
    type I interface{ M() }
    
    func NopConvertIface(x I) I {
    	// amd64:-`.*runtime.convI2I`
    	return I(x)
    }
    
    func NopConvertGeneric[T any](x T) T {
    	// amd64:-`.*runtime.convI2I`
    	return T(x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 621 bytes
    - Viewed (0)
  10. test/codegen/retpoline.go

    // asmcheck -gcflags=-spectre=ret
    
    //go:build amd64
    
    package codegen
    
    func CallFunc(f func()) {
    	// amd64:`CALL\truntime.retpoline`
    	f()
    }
    
    func CallInterface(x interface{ M() }) {
    	// amd64:`CALL\truntime.retpoline`
    	x.M()
    }
    
    // Check to make sure that jump tables are disabled
    // when retpoline is on. See issue 57097.
    func noJumpTables(x int) int {
    	switch x {
    	case 0:
    		return 0
    	case 1:
    		return 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 580 bytes
    - Viewed (0)
Back to top