Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for arithConstShift_ssa (0.22 sec)

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

    	return int64(y >> z)
    }
    
    //go:noinline
    func arithConstShift_ssa(x int64) int64 {
    	return x >> 100
    }
    
    // testArithConstShift tests that right shift by large constants preserve
    // the sign of the input.
    func testArithConstShift(t *testing.T) {
    	want := int64(-1)
    	if got := arithConstShift_ssa(-1); want != got {
    		t.Errorf("arithConstShift_ssa(-1) failed, wanted %d got %d", want, got)
    	}
    	want = 0
    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