Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    	return int16(x) << uint16(0xffff) << uint16(1)
    }
    
    //go:noinline
    func overflowConstShift8_ssa(x int64) int8 {
    	return int8(x) << uint8(0xff) << uint8(1)
    }
    
    func testOverflowConstShift(t *testing.T) {
    	want := int64(0)
    	for x := int64(-127); x < int64(127); x++ {
    		got := overflowConstShift64_ssa(x)
    		if want != got {
    			t.Errorf("overflowShift64 failed, wanted %d got %d", want, got)
    		}
    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