Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test64BitConstAdd (0.11 sec)

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

    func test64BitConstMult_ssa(a, b int64) int64 {
    	return 34359738369*a + b*34359738370
    }
    
    // test64BitConstAdd tests that rewrite rules don't fold 64 bit constants
    // into add instructions.
    func test64BitConstAdd(t *testing.T) {
    	want := int64(3567671782835376650)
    	if got := test64BitConstAdd_ssa(1, 2); want != got {
    		t.Errorf("test64BitConstAdd failed, wanted %d got %d", want, got)
    	}
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
Back to top