Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for check_func (0.34 sec)

  1. src/crypto/internal/boring/build-goboring.sh

    #include "goboringcrypto0.h"
    #include "goboringcrypto1.h"
    #define check_size(t) if(sizeof(t) != sizeof(GO_ ## t)) {printf("sizeof(" #t ")=%d, but sizeof(GO_" #t ")=%d\n", (int)sizeof(t), (int)sizeof(GO_ ## t)); ret=1;}
    #define check_func(f) { auto x = f; x = _goboringcrypto_ ## f ; }
    #define check_value(n, v) if(n != v) {printf(#n "=%d, but goboringcrypto.h defines it as %d\n", (int)n, (int)v); ret=1;}
    int main() {
    int ret = 0;
    #include "goboringcrypto.x"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/nilcheck_test.go

    			If("bool2", "extra", "exit")),
    		Bloc("extra",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	nilcheckelim(fun.f)
    
    	// clean up the removed nil check
    	fuse(fun.f, fuseTypePlain)
    	deadcode(fun.f)
    
    	CheckFunc(fun.f)
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["secondCheck"] && isNilCheck(b) {
    			t.Errorf("secondCheck was not eliminated")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo_custom_call.mlir

    //test TF ops wrapped in stablehlo custom_call
    
    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    // test stablehlo roundtrip
    
    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/deadcode_test.go

    			If("cond", "b3", "b4")),
    		Bloc("b3",
    			If("cond", "b3", "b4")),
    		Bloc("b4",
    			If("cond", "b3", "exit")),
    		Bloc("exit",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	Opt(fun.f)
    	CheckFunc(fun.f)
    	Deadcode(fun.f)
    	CheckFunc(fun.f)
    	if fun.blocks["entry"].Kind != BlockPlain {
    		t.Errorf("if(false) not simplified")
    	}
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["b2"] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 23:01:51 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  6. src/net/http/httptest/recorder_test.go

    package httptest
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"testing"
    )
    
    func TestRecorder(t *testing.T) {
    	type checkFunc func(*ResponseRecorder) error
    	check := func(fns ...checkFunc) []checkFunc { return fns }
    
    	hasStatus := func(wantCode int) checkFunc {
    		return func(rec *ResponseRecorder) error {
    			if rec.Code != wantCode {
    				return fmt.Errorf("Status = %d; want %d", rec.Code, wantCode)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 23:17:38 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/fuse_test.go

    			Valu("bool1", OpNeqPtr, c.config.Types.Bool, 0, nil, "ptr1", "nilptr"),
    			If("bool1", "then", "exit")),
    		Bloc("then",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	fuseLate(fun.f)
    
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["then"] && b.Kind != BlockInvalid {
    			t.Errorf("then was not eliminated, but should have")
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/passbm_test.go

    	fun := c.Fun("entry", bg(size)...)
    	CheckFunc(fun.f)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		fn(fun.f)
    		b.StopTimer()
    		CheckFunc(fun.f)
    		b.StartTimer()
    	}
    }
    
    // benchFnBlock runs passFunc across a function with b.N blocks.
    func benchFnBlock(b *testing.B, fn passFunc, bg blockGen) {
    	b.ReportAllocs()
    	c := testConfig(b)
    	fun := c.Fun("entry", bg(b.N)...)
    	CheckFunc(fun.f)
    	b.ResetTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/deadstore_test.go

    			Valu("store4", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr3", "v", "store3"),
    			Goto("exit")),
    		Bloc("exit",
    			Exit("store3")))
    
    	CheckFunc(fun.f)
    	dse(fun.f)
    	CheckFunc(fun.f)
    
    	v1 := fun.values["store1"]
    	if v1.Op != OpCopy {
    		t.Errorf("dead store not removed")
    	}
    
    	v2 := fun.values["zero1"]
    	if v2.Op != OpCopy {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/branchelim_test.go

    					Valu("phi", OpPhi, intType, 0, nil, "const1", "const2"),
    					Valu("retstore", OpStore, types.TypeMem, 0, nil, "phi", "sb", "start"),
    					Exit("retstore")))
    
    			CheckFunc(fun.f)
    			branchelim(fun.f)
    			CheckFunc(fun.f)
    			Deadcode(fun.f)
    			CheckFunc(fun.f)
    
    			if data.ok {
    
    				if len(fun.f.Blocks) != 1 {
    					t.Fatalf("expected 1 block after branchelim and deadcode; found %d", len(fun.f.Blocks))
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
Back to top