Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sub2_ssa (0.13 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/fp_test.go

    	fail64("+", add64_ssa, a, b, 7.0)
    	fail64("*", mul64_ssa, a, b, 12.0)
    	fail64("-", sub64_ssa, a, b, -1.0)
    	fail64("/", div64_ssa, a, b, 0.75)
    	fail64("neg", neg64_ssa, a, b, -7)
    
    	fail32("+", add32_ssa, c, d, 7.0)
    	fail32("*", mul32_ssa, c, d, 12.0)
    	fail32("-", sub32_ssa, c, d, -1.0)
    	fail32("/", div32_ssa, c, d, 0.75)
    	fail32("neg", neg32_ssa, c, d, -7)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 35K bytes
    - Viewed (0)
  3. 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