Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for check_func (0.17 sec)

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

    			Valu("wb1", OpStore, types.TypeMem, 0, ptrType, "addr1", "v", "start"), // wb1 and wb2 are out of order
    			Goto("exit")),
    		Bloc("exit",
    			Exit("wb2")))
    
    	CheckFunc(fun.f)
    	writebarrier(fun.f)
    	CheckFunc(fun.f)
    }
    
    func TestWriteBarrierPhi(t *testing.T) {
    	// Make sure writebarrier phase works for single-block loop, where
    	// a Phi op takes the store in the same block as argument.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/regalloc_test.go

    			Eq("a", "if", "exit"),
    		),
    		Bloc("if",
    			Eq("b", "plain", "exit"),
    		),
    		Bloc("plain",
    			Goto("exit"),
    		),
    		Bloc("exit",
    			Exit("mem"),
    		),
    	)
    	flagalloc(f.f)
    	regalloc(f.f)
    	checkFunc(f.f)
    }
    
    // Test to make sure G register is never reloaded from spill (spill of G is okay)
    // See #25504
    func TestNoGetgLoadReg(t *testing.T) {
    	/*
    		Original:
    		func fff3(i int) *g {
    			gee := getg()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/dom_test.go

    	return blocs
    }
    
    // sink for benchmark
    var domBenchRes []*Block
    
    func benchmarkDominators(b *testing.B, size int, bg blockGen) {
    	c := testConfig(b)
    	fun := c.Fun("entry", bg(size)...)
    
    	CheckFunc(fun.f)
    	b.SetBytes(int64(size))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		domBenchRes = dominators(fun.f)
    	}
    }
    
    type domFunc func(f *Func) []*Block
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/cse_test.go

    			Valu("rstore", OpStore, types.TypeMem, 0, c.config.Types.Int64, "raddr", "r10", "raddrdef"),
    			Goto("exit")),
    		Bloc("exit",
    			Exit("rstore")))
    
    	CheckFunc(fun.f)
    	cse(fun.f)
    	deadcode(fun.f)
    	CheckFunc(fun.f)
    
    	s1Cnt := 2
    	// r1 == r2 == r3, needs to remove two of this set
    	s2Cnt := 1
    	// r4 == r5, needs to remove one of these
    	for k, v := range fun.values {
    		if v.Op == OpInvalid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/sccp_test.go

    			Valu("t29", OpIsInBounds, c.config.Types.Int64, 0, nil, "v2", "v1"),
    			Valu("t30", OpIsSliceInBounds, c.config.Types.Int64, 0, nil, "v2", "v1"),
    			Goto("b2")),
    		Bloc("b2",
    			Exit("mem")))
    	sccp(fun.f)
    	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())
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 21:01:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/shortcircuit_test.go

    		Bloc("b5",
    			Valu("phi3", OpPhi, c.config.Types.Bool, 0, nil, "phi2", "cmp3"),
    			If("phi3", "b6", "b7")),
    		Bloc("b6",
    			Exit("mem")),
    		Bloc("b7",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	shortcircuit(fun.f)
    	CheckFunc(fun.f)
    
    	for _, b := range fun.f.Blocks {
    		for _, v := range b.Values {
    			if v.Op == OpPhi {
    				t.Errorf("phi %s remains", v)
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 23:01:51 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  7. test/rotate.go

    	defer b.Flush()
    
    	fmt.Fprintf(b, "%s\n", prolog)
    
    	for logBits := uint(3); logBits <= 6; logBits++ {
    		typ := fmt.Sprintf("int%d", 1<<logBits)
    		fmt.Fprint(b, strings.Replace(checkFunc, "XXX", typ, -1))
    		fmt.Fprint(b, strings.Replace(checkFunc, "XXX", "u"+typ, -1))
    		gentest(b, 1<<logBits, mode&1 != 0, mode&2 != 0)
    	}
    }
    
    const prolog = `
    
    package main
    
    import (
    	"fmt"
    	"os"
    )
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  8. tools/istio-iptables/pkg/builder/iptables_builder_test.go

    				goldenNameV4 = goldenName
    				goldenNameV6 = goldenName
    			} else {
    				goldenNameV4 = tt.name + "-v4"
    				goldenNameV6 = tt.name + "-v6"
    			}
    			checkFunc(goldenNameV4, iptables.BuildV4(), iptables.BuildV4Restore(), tt.expectV4)
    			checkFunc(goldenNameV6, iptables.BuildV6(), iptables.BuildV6Restore(), tt.expectV6)
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. tests/migrate_test.go

    		{name: "notUnique to unique", from: &UniqueStruct1{}, to: &UniqueStruct3{}, checkFunc: checkUnique},
    		{name: "notUnique to uniqueIndex", from: &UniqueStruct1{}, to: &UniqueStruct5{}, checkFunc: checkUniqueIndex},
    		{name: "notUnique to uniqueAndUniqueIndex", from: &UniqueStruct1{}, to: &UniqueStruct8{}, checkFunc: checkMyIndex},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/export_test.go

    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/obj/arm64"
    	"cmd/internal/obj/s390x"
    	"cmd/internal/obj/x86"
    	"cmd/internal/src"
    	"cmd/internal/sys"
    )
    
    var CheckFunc = checkFunc
    var Opt = opt
    var Deadcode = deadcode
    var Copyelim = copyelim
    
    var testCtxts = map[string]*obj.Link{
    	"amd64": obj.Linknew(&x86.Linkamd64),
    	"s390x": obj.Linknew(&s390x.Links390x),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top