Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 46 for asmCheck (0.3 sec)

  1. test/codegen/memops_bigoffset.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
    
    type big1 struct {
    	w [1<<30 - 1]uint32
    }
    type big2 struct {
    	d [1<<29 - 1]uint64
    }
    
    func loadLargeOffset(sw *big1, sd *big2) (uint32, uint64) {
    
    	// ppc64x:`MOVWZ\s+[0-9]+\(R[0-9]+\)`,-`ADD`
    	a3 := sw.w[1<<10]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 18:20:54 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. test/codegen/maps.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
    // map types.
    
    // ------------------- //
    //     Access Const    //
    // ------------------- //
    
    // Direct use of constants in fast map access calls (Issue #19015).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 15:51:32 UTC 2023
    - 3.6K 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/bmi.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 andn64(x, y int64) int64 {
    	// amd64/v3:"ANDNQ"
    	return x &^ y
    }
    
    func andn32(x, y int32) int32 {
    	// amd64/v3:"ANDNL"
    	return x &^ y
    }
    
    func blsi64(x int64) int64 {
    	// amd64/v3:"BLSIQ"
    	return x & -x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 04:58:59 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top