Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for is16Bit (0.12 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/_gen/MIPS.rules

    (MOVWload  [off1] {sym} x:(ADDconst [off2] ptr) mem) && (is16Bit(int64(off1+off2)) || x.Uses == 1) => (MOVWload  [off1+off2] {sym} ptr mem)
    (MOVFload  [off1] {sym} x:(ADDconst [off2] ptr) mem) && (is16Bit(int64(off1+off2)) || x.Uses == 1) => (MOVFload  [off1+off2] {sym} ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/ssa/rewriteMIPS.go

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (LoweredAtomicAdd ptr (MOVWconst [c]) mem)
    	// cond: is16Bit(int64(c))
    	// result: (LoweredAtomicAddconst [c] ptr mem)
    	for {
    		ptr := v_0
    		if v_1.Op != OpMIPSMOVWconst {
    			break
    		}
    		c := auxIntToInt32(v_1.AuxInt)
    		mem := v_2
    		if !(is16Bit(int64(c))) {
    			break
    		}
    		v.reset(OpMIPSLoweredAtomicAddconst)
    		v.AuxInt = int32ToAuxInt(c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 176.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // Fold constants into stores.
    (MOVDstore [off] {sym} ptr (MOVDconst [c]) mem) && is16Bit(c) && isU12Bit(int64(off)) && ptr.Op != OpSB =>
    	(MOVDstoreconst [makeValAndOff(int32(c),off)] {sym} ptr mem)
    (MOVWstore [off] {sym} ptr (MOVDconst [c]) mem) && is16Bit(c) && isU12Bit(int64(off)) && ptr.Op != OpSB =>
    	(MOVWstoreconst [makeValAndOff(int32(c),off)] {sym} ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/compile/internal/ssa/rewriteS390X.go

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (ADDC x (MOVDconst [c]))
    	// cond: is16Bit(c)
    	// result: (ADDCconst x [int16(c)])
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			x := v_0
    			if v_1.Op != OpS390XMOVDconst {
    				continue
    			}
    			c := auxIntToInt64(v_1.AuxInt)
    			if !(is16Bit(c)) {
    				continue
    			}
    			v.reset(OpS390XADDCconst)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
Back to top