Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for least (0.14 sec)

  1. src/cmd/compile/internal/test/mergelocals_test.go

    	}
    
    	// Expect at least one clump of at least 3.
    	n3 := 0
    	got := []int{}
    	for _, v := range varsAtFrameOffset {
    		if v > 2 {
    			n3++
    		}
    		got = append(got, v)
    	}
    	sort.Ints(got)
    	if n3 == 0 {
    		t.Logf("%s\n", string(out))
    		t.Fatalf("expected at least one clump of 3, got: %+v", got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/empty_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // All of the actual test files have limited build constraints. This file
    // ensures there's at least one test file on every platform.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 19:43:56 UTC 2023
    - 320 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/fmahash_test.go

    	"path/filepath"
    	"regexp"
    	"runtime"
    	"testing"
    )
    
    // TestFmaHash checks that the hash-test machinery works properly for a single case.
    // It also runs ssa/check and gccheck to be sure that those are checked at least a
    // little in each run.bash.  It does not check or run the generated code.
    // The test file is however a useful example of fused-vs-cascaded multiply-add.
    func TestFmaHash(t *testing.T) {
    	switch runtime.GOOS {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 21:57:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/tighten.go

    					b.Func.Warnl(v.Pos, "%v is moved", v.Op)
    				}
    				// Move v to the block which dominates its uses.
    				t.Values = append(t.Values, v)
    				v.Block = t
    				last := len(b.Values) - 1
    				b.Values[i] = b.Values[last]
    				b.Values[last] = nil
    				b.Values = b.Values[:last]
    				changed = true
    				i--
    			}
    		}
    	}
    }
    
    // phiTighten moves constants closer to phi users.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 01:01:38 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go

    		{name: "CALLtail", argLength: -1, reg: call, aux: "CallOff", call: true, tailCall: true}, // tail call static function aux.(*gc.Sym). last arg=mem, auxint=argsize, returns mem
    		{name: "CALLclosure", argLength: -1, reg: callClosure, aux: "CallOff", call: true},       // call function via closure. arg0=codeptr, arg1=closure, last arg=mem, auxint=argsize, returns mem
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/magic.go

    // Let q = x*m mod 2^n. Then c divides x if:
    //
    // -⎣(2^(n-1) - 1)/d0⎦ <= q <= ⎣(2^(n-1) - 1)/d0⎦ and q ends in at least k 0-bits
    //
    // To transform this to a single comparison, we use the following theorem (ZRS in Hacker's Delight).
    //
    // For a >= 0 the following conditions are equivalent:
    // 1) -a <= x <= a and x ends in at least k 0-bits
    // 2) RotRight(x+a', k) <= ⎣2a'/2^k⎦
    //
    // Where a' = a & -2^k (a with its right k bits set to zero)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    	}
    	if err := writer.Close(); err != nil {
    		t.Fatal(err)
    	}
    	// Simple test to make sure PAX extensions are in effect
    	if !bytes.Contains(buf.Bytes(), []byte("PaxHeaders.0")) {
    		t.Fatal("Expected at least one PAX header to be written.")
    	}
    	// Test that we can get a long name back out of the archive.
    	reader := NewReader(&buf)
    	hdr, err = reader.Next()
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/likelyadjust.go

    	// is less likely. It's possible to assign a negative
    	// unlikeliness (though not currently the case).
    	certain := f.Cache.allocInt8Slice(f.NumBlocks()) // In the long run, all outcomes are at least this bad. Mainly for Exit
    	defer f.Cache.freeInt8Slice(certain)
    	local := f.Cache.allocInt8Slice(f.NumBlocks()) // for our immediate predecessors.
    	defer f.Cache.freeInt8Slice(local)
    
    	po := f.postorder()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 15.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/debug_lines_test.go

    	// If the blocks are reordered in a way that changes the statement order but execution flows correctly,
    	// then rearrange the expected numbers.  Register abi and not-register-abi also have different sequences,
    	// at least for now.
    
    	testDebugLinesDefault(t, "-N -l", "sayhi.go", "sayhi", []int{8, 9, 10, 11}, false)
    }
    
    func TestDebugLinesPushback(t *testing.T) {
    	unixOnly(t)
    
    	switch testGoArch() {
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/poset.go

    			} else if val2 > val1 && (higherptr == 0 || val2 < higher) {
    				higher = val2
    				higherptr = ptr
    			}
    		}
    	}
    
    	if lowerptr == 0 && higherptr == 0 {
    		// This should not happen, as at least one
    		// other constant must exist if we get here.
    		panic("no constant found")
    	}
    
    	// Create the new node and connect it to the bounds, so that
    	// lower < n < higher. We could have found both bounds or only one
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
Back to top