Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/cmd/compile/internal/ssa/sccp_test.go

    	CheckFunc(fun.f)
    	for name, value := range fun.values {
    		if strings.HasPrefix(name, "t") {
    			if !isConst(value) {
    				t.Errorf("Must be constant: %v", value.LongString())
    			}
    		}
    	}
    }
    
    func TestSCCPIf(t *testing.T) {
    	c := testConfig(t)
    	fun := c.Fun("b1",
    		Bloc("b1",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("v1", OpConst64, c.config.Types.Int64, 0, nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 21:01:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top