Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBranchZero (0.37 sec)

  1. src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go

    			}
    			if got := test.goFn(test.a, test.b); got != test.want {
    				t.Errorf("Go %v %v, %v = %v, want %v", test.ins, test.a, test.b, got, test.want)
    			}
    		})
    	}
    }
    
    func TestBranchZero(t *testing.T) {
    	tests := []struct {
    		ins  string
    		a    int64
    		fn   func(a int64) bool
    		want bool
    	}{
    		{"BEQZ", -1, testBEQZ, false},
    		{"BEQZ", 0, testBEQZ, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 28 21:56:43 UTC 2022
    - 4.4K bytes
    - Viewed (0)
Back to top