Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sub2_ssa (0.14 sec)

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

    	}
    	x2 := sub2_ssa()
    	want2 := uint8(251)
    	if x2 != want2 {
    		t.Errorf("sub2_ssa()=%d, got %d", want2, x2)
    	}
    }
    
    //go:noinline
    func orPhi_ssa(a bool, x int) int {
    	v := 0
    	if a {
    		v = -1
    	} else {
    		v = -1
    	}
    	return x | v
    }
    
    func testOrPhi(t *testing.T) {
    	if want, got := -1, orPhi_ssa(true, 4); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/gen/zeroGen.go

    		fmt.Fprintf(w, "func zero%du1_ssa(t *Z%du1) {\n", s, s)
    		fmt.Fprintf(w, "  t.val = [%d]byte{}\n", s)
    		fmt.Fprintf(w, "}\n")
    
    		// function being tested
    		fmt.Fprintf(w, "//go:noinline\n")
    		fmt.Fprintf(w, "func zero%du2_ssa(t *Z%du2) {\n", s, s)
    		fmt.Fprintf(w, "  t.val = [%d]byte{}\n", s)
    		fmt.Fprintf(w, "}\n")
    
    		// testing harness
    		fmt.Fprintf(w, "func testZero%du(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)
Back to top