Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestArithmeticBoundary (0.25 sec)

  1. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    					}
    					fmt.Fprint(w, "},\n")
    				}
    			}
    			fmt.Fprintf(w, "}\n")
    		}
    	}
    
    	fmt.Fprintf(w, "//TestArithmeticBoundary tests boundary results for arithmetic operations.\n")
    	fmt.Fprintf(w, "func TestArithmeticBoundary(t *testing.T) {\n\n")
    
    	verify, err := template.New("tst").Parse(
    		`if got := {{.Name}}_{{.Stype}}_ssa(v.a, v.b); got != v.{{.Name}} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/arithBoundary_test.go

    	itd8{a: 127, b: 126, add: -3, sub: 1, mul: -126, div: 1, mod: 1},
    	itd8{a: 127, b: 127, add: -2, sub: 0, mul: 1, div: 1, mod: 0},
    }
    
    //TestArithmeticBoundary tests boundary results for arithmetic operations.
    func TestArithmeticBoundary(t *testing.T) {
    
    	for _, v := range uint64_data {
    		if got := add_uint64_ssa(v.a, v.b); got != v.add {
    			t.Errorf("add_uint64 %d+%d = %d, wanted %d\n", v.a, v.b, got, v.add)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 31.3K bytes
    - Viewed (0)
Back to top