Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sub1_ssa (0.12 sec)

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

    	}
    
    }
    
    //go:noinline
    func sub1_ssa() uint64 {
    	v1 := uint64(3) // uint64
    	return v1*v1 - (v1&v1)&v1
    }
    
    //go:noinline
    func sub2_ssa() uint8 {
    	v1 := uint8(0)
    	v3 := v1 + v1 + v1 ^ v1 | 3 + v1 ^ v1 | v1 ^ v1
    	v1-- // dev.ssa doesn't see this one
    	return v1 ^ v1*v1 - v3
    }
    
    func testSubConst(t *testing.T) {
    	x1 := sub1_ssa()
    	want1 := uint64(6)
    	if x1 != want1 {
    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, "  i   uint16\n")
    		fmt.Fprintf(w, "  val [%d]byte\n", s)
    		fmt.Fprintf(w, "}\n")
    
    		// function being tested
    		fmt.Fprintf(w, "//go:noinline\n")
    		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)
    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