Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for asmCheck (0.17 sec)

  1. test/codegen/smallintiface.go

    // asmcheck
    
    package codegen
    
    // 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.
    
    func booliface() interface{} {
    	// amd64:`LEAQ\truntime.staticuint64s\+8\(SB\)`
    	return true
    }
    
    func smallint8iface() interface{} {
    	// amd64:`LEAQ\truntime.staticuint64s\+2024\(SB\)`
    	return int8(-3)
    }
    
    func smalluint8iface() interface{} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 04 21:43:01 UTC 2020
    - 500 bytes
    - Viewed (0)
  2. test/codegen/regabi_regalloc.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
    
    //go:registerparams
    func f1(a, b int) {
    	// amd64:"MOVQ\tBX, CX", "MOVQ\tAX, BX", "MOVL\t\\$1, AX", -"MOVQ\t.*DX"
    	g(1, a, b)
    }
    
    //go:registerparams
    func f2(a, b int) {
    	// amd64:"MOVQ\tBX, AX", "MOVQ\t[AB]X, CX", -"MOVQ\t.*, BX"
    	g(b, b, b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 19 16:21:39 UTC 2021
    - 494 bytes
    - Viewed (0)
  3. test/codegen/alloc.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.
    
    // These tests check that allocating a 0-size object does not
    // introduce a call to runtime.newobject.
    
    package codegen
    
    func zeroAllocNew1() *struct{} {
    	// 386:-`CALL\truntime\.newobject`
    	// amd64:-`CALL\truntime\.newobject`
    	// arm:-`CALL\truntime\.newobject`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 26 23:08:15 UTC 2019
    - 902 bytes
    - Viewed (0)
  4. 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)
  5. test/codegen/issue38554.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.
    
    // Test that we are zeroing directly instead of
    // copying a large zero value. Issue 38554.
    
    package codegen
    
    func retlarge() [256]byte {
    	// amd64:-"DUFFCOPY"
    	return [256]byte{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 24 23:58:10 UTC 2020
    - 355 bytes
    - Viewed (0)
  6. test/codegen/addrcalc.go

    // asmcheck
    
    // Copyright 2019 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
    
    // Make sure we use ADDQ instead of LEAQ when we can.
    
    func f(p *[4][2]int, x int) *int {
    	// amd64:"ADDQ",-"LEAQ"
    	return &p[x][0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 24 21:33:53 UTC 2020
    - 324 bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. test/codegen/shortcircuit.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 efaceExtract(e interface{}) int {
    	// This should be compiled with only
    	// a single conditional jump.
    	// amd64:-"JMP"
    	if x, ok := e.(int); ok {
    		return x
    	}
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 08 22:13:38 UTC 2020
    - 368 bytes
    - Viewed (0)
  10. test/codegen/issue25378.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.
    
    package codegen
    
    var wsp = [256]bool{
    	' ':  true,
    	'\t': true,
    	'\n': true,
    	'\r': true,
    }
    
    func zeroExtArgByte(ch [2]byte) bool {
    	return wsp[ch[0]] // amd64:-"MOVBLZX\t..,.."
    }
    
    func zeroExtArgUint16(ch [2]uint16) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 12 21:59:59 UTC 2021
    - 445 bytes
    - Viewed (0)
Back to top