Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for is16Bit (0.17 sec)

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

    (CMP x (MOVDconst [c])) && is16Bit(c) => (CMPconst x [c])
    (CMP (MOVDconst [c]) y) && is16Bit(c) => (InvertFlags (CMPconst y [c]))
    (CMPW x (MOVDconst [c])) && is16Bit(c) => (CMPWconst x [int32(c)])
    (CMPW (MOVDconst [c]) y) && is16Bit(c) => (InvertFlags (CMPWconst y [int32(c)]))
    
    (CMPU x (MOVDconst [c])) && isU16Bit(c) => (CMPUconst x [c])
    (CMPU (MOVDconst [c]) y) && isU16Bit(c) => (InvertFlags (CMPUconst y [c]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewritePPC64.go

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	// match: (CMP x (MOVDconst [c]))
    	// cond: is16Bit(c)
    	// result: (CMPconst x [c])
    	for {
    		x := v_0
    		if v_1.Op != OpPPC64MOVDconst {
    			break
    		}
    		c := auxIntToInt64(v_1.AuxInt)
    		if !(is16Bit(c)) {
    			break
    		}
    		v.reset(OpPPC64CMPconst)
    		v.AuxInt = int64ToAuxInt(c)
    		v.AddArg(x)
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    }
    
    // is32Bit reports whether n can be represented as a signed 32 bit integer.
    func is32Bit(n int64) bool {
    	return n == int64(int32(n))
    }
    
    // is16Bit reports whether n can be represented as a signed 16 bit integer.
    func is16Bit(n int64) bool {
    	return n == int64(int16(n))
    }
    
    // is8Bit reports whether n can be represented as a signed 8 bit integer.
    func is8Bit(n int64) bool {
    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