Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for asmCheck (0.28 sec)

  1. test/codegen/clobberdead.go

    // asmcheck -gcflags=-clobberdead
    
    //go:build amd64 || arm64
    
    // 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
    
    type T [2]*int // contain pointer, not SSA-able (so locals are not registerized)
    
    var p1, p2, p3 T
    
    func F() {
    	// 3735936685 is 0xdeaddead. On ARM64 R27 is REGTMP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. test/codegen/clobberdeadreg.go

    // asmcheck -gcflags=-clobberdeadreg
    
    //go:build amd64
    
    // 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
    
    type S struct {
    	a, b, c, d, e, f int
    }
    
    func F(a, b, c int, d S) {
    	// -2401018187971961171 is 0xdeaddeaddeaddead
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. test/codegen/strings.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
    
    // This file contains code generation tests related to the handling of
    // string types.
    
    func CountRunes(s string) int { // Issue #24923
    	// amd64:`.*countrunes`
    	return len([]rune(s))
    }
    
    func CountBytes(s []byte) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 26 17:17:28 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. test/codegen/copy.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
    
    import "runtime"
    
    // Check small copies are replaced with moves.
    
    func movesmall4() {
    	x := [...]byte{1, 2, 3, 4}
    	// 386:-".*memmove"
    	// amd64:-".*memmove"
    	// arm:-".*memmove"
    	// arm64:-".*memmove"
    	// ppc64x:-".*memmove"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 14:09:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. test/codegen/switch.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.
    
    // These tests check code generation of switch statements.
    
    package codegen
    
    // see issue 33934
    func f(x string) int {
    	// amd64:-`cmpstring`
    	switch x {
    	case "":
    		return -1
    	case "1", "2", "3":
    		return -2
    	default:
    		return -3
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 18:39:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. test/codegen/stack.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
    
    import "runtime"
    
    // This file contains code generation tests related to the use of the
    // stack.
    
    // Check that stack stores are optimized away.
    
    // 386:"TEXT\t.*, [$]0-"
    // amd64:"TEXT\t.*, [$]0-"
    // arm:"TEXT\t.*, [$]-4-"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. test/codegen/floats.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
    
    // This file contains codegen tests related to arithmetic
    // simplifications and optimizations on float types.
    // For codegen tests on integer types, see arithmetic.go.
    
    // --------------------- //
    //    Strength-reduce    //
    // --------------------- //
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. test/codegen/compare_and_branch.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
    
    //go:noinline
    func dummy() {}
    
    // Signed 64-bit compare-and-branch.
    func si64(x, y chan int64) {
    	// s390x:"CGRJ\t[$](2|4), R[0-9]+, R[0-9]+, "
    	for <-x < <-y {
    		dummy()
    	}
    
    	// s390x:"CL?GRJ\t[$]8, R[0-9]+, R[0-9]+, "
    	for <-x == <-y {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 21:01:50 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. src/cmd/internal/testdir/testdir_test.go

    	}
    	return env
    }
    
    // asmChecks represents all the asmcheck checks present in a test file
    // The outer map key is the build triplet in which the checks must be performed.
    // The inner map key represent the source file line ("filename.go:1234") at which the
    // checks must be performed.
    type asmChecks map[buildEnv]map[string][]wantedAsmOpcode
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  10. test/codegen/README

    against a set of regexps to be specified in comments that follow a
    special syntax (described below). The test driver is implemented as
    an action within the GOROOT/test test suite, called "asmcheck".
    
    The codegen harness is part of the all.bash test suite, but for
    performance reasons only the codegen tests for the host machine's
    GOARCH are enabled by default, and only on GOOS=linux.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top