Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,050 for Select0 (0.16 sec)

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

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Add64 x y)
    	// result: (Int64Make (Add32withcarry <typ.Int32> (Int64Hi x) (Int64Hi y) (Select1 <types.TypeFlags> (Add32carry (Int64Lo x) (Int64Lo y)))) (Select0 <typ.UInt32> (Add32carry (Int64Lo x) (Int64Lo y))))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpInt64Make)
    		v0 := b.NewValue0(v.Pos, OpAdd32withcarry, typ.Int32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 65.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

    (SelectN [0] (MakeResult x ___)) => x
    (SelectN [1] (MakeResult x y ___)) => y
    (SelectN [2] (MakeResult x y z ___)) => z
    
    // for late-expanded calls, recognize newobject and remove zeroing and nilchecks
    (Zero (SelectN [0] call:(StaticLECall _ _)) mem:(SelectN [1] call))
    	&& isSameCall(call.Aux, "runtime.newobject")
    	=> mem
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    		return true
    	}
    	// match: (MOVBUreg x:(Select0 (LoweredAtomicLoad8 _ _)))
    	// result: (MOVDreg x)
    	for {
    		x := v_0
    		if x.Op != OpSelect0 {
    			break
    		}
    		x_0 := x.Args[0]
    		if x_0.Op != OpRISCV64LoweredAtomicLoad8 {
    			break
    		}
    		v.reset(OpRISCV64MOVDreg)
    		v.AddArg(x)
    		return true
    	}
    	// match: (MOVBUreg x:(Select0 (LoweredAtomicCas32 _ _ _ _)))
    	// result: (MOVDreg x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewriteARM64.go

    	}
    	// match: (Move [64] dst src mem)
    	// result: (STP [48] dst (Select0 <typ.UInt64> (LDP [48] src mem)) (Select1 <typ.UInt64> (LDP [48] src mem)) (STP [32] dst (Select0 <typ.UInt64> (LDP [32] src mem)) (Select1 <typ.UInt64> (LDP [32] src mem)) (STP [16] dst (Select0 <typ.UInt64> (LDP [16] src mem)) (Select1 <typ.UInt64> (LDP [16] src mem)) (STP dst (Select0 <typ.UInt64> (LDP src mem)) (Select1 <typ.UInt64> (LDP src mem)) mem))))
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// pseudo-ops for breaking Tuple
    	{name: "Select0", argLength: 1, zeroWidth: true},  // the first component of a tuple
    	{name: "Select1", argLength: 1, zeroWidth: true},  // the second component of a tuple
    	{name: "SelectN", argLength: 1, aux: "Int64"},     // arg0=result, auxint=field index.  Returns the auxint'th member.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. test/chan/select3.go

    	testBlock(always, func() {
    		ch := make(chan int)
    		<-ch
    	})
    
    	// empty selects always block
    	testBlock(always, func() {
    		select {}
    	})
    
    	// selects with only nil channels always block
    	testBlock(always, func() {
    		select {
    		case <-nilch:
    			unreachable()
    		}
    	})
    	testBlock(always, func() {
    		select {
    		case nilch <- 7:
    			unreachable()
    		}
    	})
    	testBlock(always, func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 08 02:10:12 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  7. test/reorder2.go

    	c <- 1
    	select {
    	default:
    	case <-c:
    		if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
    			println("in select4, expecting a(1)a(2)a(3) , got ", log)
    			err++
    		}
    		log = ""
    
    		if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
    			println("in select4, expecting a(1)b(2)a(2), got ", log)
    			err++
    		}
    		log = ""
    		if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 7.2K bytes
    - Viewed (0)
  8. test/chan/select5.go

    	order = 0
    	c <- n
    	{{if .Maybe}}
    	{{/*  Outside of select, left-to-right rule applies. */}}
    	{{/*  (Inside select, assignment waits until case is chosen, */}}
    	{{/*  so right hand side happens before anything on left hand side. */}}
    	*fp(&x, 1) = <-fc(c, 2)
    	{{else}}{{if .Maybe}}
    	m[fn(13, 1)] = <-fc(c, 2)
    	x = m[13]
    	{{else}}
    	select {
    	{{/*  Blocking or non-blocking, before the receive. */}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 10K bytes
    - Viewed (0)
  9. test/chan/select8.go

    // Test break statements in a select.
    // Gccgo had a bug in handling this.
    // Test 1,2,3-case selects, so it covers both the general
    // code path and the specialized optimizations for one-
    // and two-case selects.
    
    package main
    
    var ch = make(chan int)
    
    func main() {
    	go func() {
    		for {
    			ch <- 5
    		}
    	}()
    
    	select {
    	case <-ch:
    		break
    		panic("unreachable")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 10 18:02:11 UTC 2019
    - 826 bytes
    - Viewed (0)
  10. test/chan/select2.go

    // license that can be found in the LICENSE file.
    
    // Test that selects do not consume undue memory.
    
    package main
    
    import "runtime"
    
    func sender(c chan int, n int) {
    	for i := 0; i < n; i++ {
    		c <- 1
    	}
    }
    
    func receiver(c, dummy chan int, n int) {
    	for i := 0; i < n; i++ {
    		select {
    		case <-c:
    			// nothing
    		case <-dummy:
    			panic("dummy")
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1K bytes
    - Viewed (0)
Back to top