Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for int16ToAuxInt (0.2 sec)

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

    	// result: (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    		v.reset(Op386CMPWconst)
    		v.AuxInt = int16ToAuxInt(vo.Val16())
    		v0 := b.NewValue0(v.Pos, Op386MOVWload, typ.UInt16)
    		v0.AuxInt = int32ToAuxInt(vo.Off())
    		v0.Aux = symToAux(sym)
    		v0.AddArg2(ptr, mem)
    		v.AddArg(v0)
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewritegeneric.go

    					v2 := b.NewValue0(v.Pos, OpConst16, typ.UInt16)
    					v2.AuxInt = int16ToAuxInt(int16(udivisible16(c).m))
    					v1.AddArg2(v2, x)
    					v3 := b.NewValue0(v.Pos, OpConst16, typ.UInt16)
    					v3.AuxInt = int16ToAuxInt(int16(16 - udivisible16(c).k))
    					v0.AddArg2(v1, v3)
    					v4 := b.NewValue0(v.Pos, OpConst16, typ.UInt16)
    					v4.AuxInt = int16ToAuxInt(int16(udivisible16(c).max))
    					v.AddArg2(v0, v4)
    					return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewriteAMD64splitload.go

    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    		if !(vo.Val() != 0) {
    			break
    		}
    		v.reset(OpAMD64CMPWconst)
    		v.AuxInt = int16ToAuxInt(vo.Val16())
    		v0 := b.NewValue0(v.Pos, OpAMD64MOVWload, typ.UInt16)
    		v0.AuxInt = int32ToAuxInt(vo.Off())
    		v0.Aux = symToAux(sym)
    		v0.AddArg2(ptr, mem)
    		v.AddArg(v0)
    		return true
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewrite386.go

    	// result: (CMPWconst x [int16(c)])
    	for {
    		x := v_0
    		if v_1.Op != Op386MOVLconst {
    			break
    		}
    		c := auxIntToInt32(v_1.AuxInt)
    		v.reset(Op386CMPWconst)
    		v.AuxInt = int16ToAuxInt(int16(c))
    		v.AddArg(x)
    		return true
    	}
    	// match: (CMPW (MOVLconst [c]) x)
    	// result: (InvertFlags (CMPWconst x [int16(c)]))
    	for {
    		if v_0.Op != Op386MOVLconst {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:05:46 UTC 2023
    - 262.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritedec64.go

    		v5 := b.NewValue0(v.Pos, OpInt64Lo, typ.UInt32)
    		v5.AddArg(x)
    		v6 := b.NewValue0(v.Pos, OpSub16, typ.UInt16)
    		v7 := b.NewValue0(v.Pos, OpConst16, typ.UInt16)
    		v7.AuxInt = int16ToAuxInt(32)
    		v6.AddArg2(v7, s)
    		v4.AddArg2(v5, v6)
    		v1.AddArg2(v2, v4)
    		v8 := b.NewValue0(v.Pos, OpLsh32x16, typ.UInt32)
    		v9 := b.NewValue0(v.Pos, OpSub16, typ.UInt16)
    		v9.AddArg2(s, v7)
    		v8.AddArg2(v5, v9)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 65.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewriteAMD64.go

    	// result: (CMPWconst x [int16(c)])
    	for {
    		x := v_0
    		if v_1.Op != OpAMD64MOVLconst {
    			break
    		}
    		c := auxIntToInt32(v_1.AuxInt)
    		v.reset(OpAMD64CMPWconst)
    		v.AuxInt = int16ToAuxInt(int16(c))
    		v.AddArg(x)
    		return true
    	}
    	// match: (CMPW (MOVLconst [c]) x)
    	// result: (InvertFlags (CMPWconst x [int16(c)]))
    	for {
    		if v_0.Op != OpAMD64MOVLconst {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 712.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewrite.go

    func auxIntToOp(cc int64) Op {
    	return Op(cc)
    }
    
    func boolToAuxInt(b bool) int64 {
    	if b {
    		return 1
    	}
    	return 0
    }
    func int8ToAuxInt(i int8) int64 {
    	return int64(i)
    }
    func int16ToAuxInt(i int16) int64 {
    	return int64(i)
    }
    func int32ToAuxInt(i int32) int64 {
    	return int64(i)
    }
    func int64ToAuxInt(i int64) int64 {
    	return int64(i)
    }
    func uint8ToAuxInt(i uint8) int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewriteS390X.go

    			x := v_0
    			if v_1.Op != OpS390XMOVDconst {
    				continue
    			}
    			c := auxIntToInt64(v_1.AuxInt)
    			if !(is16Bit(c)) {
    				continue
    			}
    			v.reset(OpS390XADDCconst)
    			v.AuxInt = int16ToAuxInt(int16(c))
    			v.AddArg(x)
    			return true
    		}
    		break
    	}
    	return false
    }
    func rewriteValueS390X_OpS390XADDE(v *Value) bool {
    	v_2 := v.Args[2]
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteARM.go

    	for {
    		if v_1.Op != OpConst64 {
    			break
    		}
    		c := auxIntToInt64(v_1.AuxInt)
    		if !(uint64(c) >= 16) {
    			break
    		}
    		v.reset(OpConst16)
    		v.AuxInt = int16ToAuxInt(0)
    		return true
    	}
    	return false
    }
    func rewriteValueARM_OpLsh16x8(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
Back to top