Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for shiftIsBounded (0.26 sec)

  1. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (Lsh64x(64|32|16|8) x y) && shiftIsBounded(v) => (SHLQ x y)
    (Lsh32x(64|32|16|8) x y) && shiftIsBounded(v) => (SHLL x y)
    (Lsh16x(64|32|16|8) x y) && shiftIsBounded(v) => (SHLL x y)
    (Lsh8x(64|32|16|8)  x y) && shiftIsBounded(v) => (SHLL x y)
    
    (Rsh64Ux(64|32|16|8) <t> x y) && !shiftIsBounded(v) => (ANDQ (SHRQ <t> x y) (SBBQcarrymask <t> (CMP(Q|L|W|B)const y [64])))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K 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/_gen/S390X.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) => (SLW x y)
    (Lsh8x(64|32|16|8)   x y) && shiftIsBounded(v) => (SLW 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: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/compile/internal/ssa/prove.go

    			lim, ok := ft.limits[by.ID]
    			if !ok {
    				break
    			}
    			bits := 8 * v.Args[0].Type.Size()
    			if lim.umax < uint64(bits) || (lim.max < bits && ft.isNonNegative(by)) {
    				v.AuxInt = 1 // see shiftIsBounded
    				if b.Func.pass.debug > 0 {
    					b.Func.Warnl(v.Pos, "Proved %v bounded", v.Op)
    				}
    			}
    		case OpDiv16, OpDiv32, OpDiv64, OpMod16, OpMod32, OpMod64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
Back to top