Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for f_ssa (0.03 sec)

  1. src/cmd/compile/internal/test/testdata/unsafe_test.go

    	// uintptr cast above.
    	var z uintptr
    	if always {
    		z = y
    	} else {
    		z = 0
    	}
    	return (*[8]uint)(unsafe.Pointer(z))
    }
    
    // g_ssa is the same as f_ssa, but with a bit of pointer
    // arithmetic for added insanity.
    func g_ssa() *[7]uint {
    	// Make x a uintptr pointing to where a points.
    	var x uintptr
    	if always {
    		x = uintptr(unsafe.Pointer(a))
    	} else {
    		x = 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 3K bytes
    - Viewed (0)
  2. test/fixedbugs/issue12347.go

    // compile
    
    // Copyright 2015 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 f_ssa(x int, p *int) {
    	if false {
    		y := x + 5
    		for {
    			*p = y
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 263 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/testdata/gen/zeroGen.go

    		fmt.Fprintf(w, "  mid [%d]byte\n", s)
    		fmt.Fprintf(w, "  post [8]byte\n")
    		fmt.Fprintf(w, "}\n")
    
    		// function being tested
    		fmt.Fprintf(w, "//go:noinline\n")
    		fmt.Fprintf(w, "func zero%d_ssa(x *[%d]byte) {\n", s, s)
    		fmt.Fprintf(w, "  *x = [%d]byte{}\n", s)
    		fmt.Fprintf(w, "}\n")
    
    		// testing harness
    		fmt.Fprintf(w, "func testZero%d(t *testing.T) {\n", s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/addressed_test.go

    }
    
    func assertEqual(t *testing.T, x, y int) {
    	if x != y {
    		mypanic(t, fmt.Sprintf("assertEqual failed got %d, want %d", x, y))
    	}
    }
    
    func TestAddressed(t *testing.T) {
    	x := f1_ssa(2, 3)
    	output += fmt.Sprintln("*x is", *x)
    	output += fmt.Sprintln("Gratuitously use some stack")
    	output += fmt.Sprintln("*x is", *x)
    	assertEqual(t, *x, 9)
    
    	w := f3a_ssa(6)
    	output += fmt.Sprintln("*w is", *w)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    		fmt.Fprintf(w, "  add,sub,mul,div,mod int%d\n", sz)
    		fmt.Fprintf(w, "}\n")
    	}
    
    	// the function being tested
    	testFunc, err := template.New("testFunc").Parse(
    		`//go:noinline
    		func {{.Name}}_{{.Stype}}_ssa(a, b {{.Stype}}) {{.Stype}} {
    	return a {{.SymFirst}} b
    }
    `)
    	if err != nil {
    		panic(err)
    	}
    
    	// generate our functions to be tested
    	for _, s := range szs {
    		for _, o := range ops {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
Back to top