Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for shiftIsBounded (0.24 sec)

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

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Lsh16x16 x y)
    	// cond: shiftIsBounded(v)
    	// result: (SLD x y)
    	for {
    		x := v_0
    		y := v_1
    		if !(shiftIsBounded(v)) {
    			break
    		}
    		v.reset(OpPPC64SLD)
    		v.AddArg2(x, y)
    		return true
    	}
    	// match: (Lsh16x16 <t> x y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Lsh64x(64|32|16|8)  x y) && shiftIsBounded(v) => (SLD x y)
    (Lsh32x(64|32|16|8)  x y) && shiftIsBounded(v) => (SLW x y)
    (Lsh16x(64|32|16|8)  x y) && shiftIsBounded(v) => (SLD x y)
    (Lsh8x(64|32|16|8)   x y) && shiftIsBounded(v) => (SLD x y)
    (Rsh64Ux(64|32|16|8) x y) && shiftIsBounded(v) => (SRD x y)
    (Rsh32Ux(64|32|16|8) x y) && shiftIsBounded(v) => (SRW x y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    // b2i32 translates a boolean value to 0 or 1.
    func b2i32(b bool) int32 {
    	if b {
    		return 1
    	}
    	return 0
    }
    
    // shiftIsBounded reports whether (left/right) shift Value v is known to be bounded.
    // A shift is bounded if it is shifting by less than the width of the shifted value.
    func shiftIsBounded(v *Value) bool {
    	return v.AuxInt != 0
    }
    
    // canonLessThan returns whether x is "ordered" less than y, for purposes of normalizing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top