Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testOrPhi (0.14 sec)

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

    	}
    }
    
    //go:noinline
    func orPhi_ssa(a bool, x int) int {
    	v := 0
    	if a {
    		v = -1
    	} else {
    		v = -1
    	}
    	return x | v
    }
    
    func testOrPhi(t *testing.T) {
    	if want, got := -1, orPhi_ssa(true, 4); got != want {
    		t.Errorf("orPhi_ssa(true, 4)=%d, want %d", got, want)
    	}
    	if want, got := -1, orPhi_ssa(false, 0); got != want {
    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