Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AuxInt (0.13 sec)

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

    	// result: (CMPBconst (MOVBload {sym} [vo.Off()] ptr mem) [vo.Val8()])
    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    		v.reset(Op386CMPBconst)
    		v.AuxInt = int8ToAuxInt(vo.Val8())
    		v0 := b.NewValue0(v.Pos, Op386MOVBload, typ.UInt8)
    		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/rewriteRISCV64latelower.go

    	// result: (SRLI [56-c] (SLLI <typ.UInt64> [56] x))
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		if v_0.Op != OpRISCV64MOVBUreg {
    			break
    		}
    		x := v_0.Args[0]
    		if !(c <= 56) {
    			break
    		}
    		v.reset(OpRISCV64SRLI)
    		v.AuxInt = int64ToAuxInt(56 - c)
    		v0 := b.NewValue0(v.Pos, OpRISCV64SLLI, typ.UInt64)
    		v0.AuxInt = int64ToAuxInt(56)
    		v0.AddArg(x)
    		v.AddArg(v0)
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/phiopt.go

    		return
    	}
    
    	switch a0.Op {
    	case OpConst8, OpConst16, OpConst32, OpConst64:
    	default:
    		return
    	}
    
    	negate := false
    	switch {
    	case a0.AuxInt == 0 && a1.AuxInt == 1:
    		negate = true
    	case a0.AuxInt == 1 && a1.AuxInt == 0:
    	default:
    		return
    	}
    
    	if reverse == 1 {
    		negate = !negate
    	}
    
    	a := b0.Controls[0]
    	if negate {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/zcse.go

    	t  *types.Type // type
    }
    
    // keyFor returns the AuxInt portion of a  key structure uniquely identifying a
    // zero arg value for the supported ops.
    func keyFor(v *Value) int64 {
    	switch v.Op {
    	case OpConst64, OpConst64F, OpConst32F:
    		return v.AuxInt
    	case OpConst32:
    		return int64(int32(v.AuxInt))
    	case OpConst16:
    		return int64(int16(v.AuxInt))
    	case OpConst8, OpConstBool:
    		return int64(int8(v.AuxInt))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 08 01:46:31 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/softfloat.go

    					v.Type = f.Config.Types.UInt32
    					v.AuxInt = int64(int32(math.Float32bits(auxTo32F(v.AuxInt))))
    				case OpConst64F:
    					v.Op = OpConst64
    					v.Type = f.Config.Types.UInt64
    				case OpNeg32F:
    					arg0 := v.Args[0]
    					v.reset(OpXor32)
    					v.Type = f.Config.Types.UInt32
    					v.AddArg(arg0)
    					mask := v.Block.NewValue0(v.Pos, OpConst32, v.Type)
    					mask.AuxInt = -0x80000000
    					v.AddArg(mask)
    				case OpNeg64F:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/cse.go

    func cmpVal(v, w *Value, auxIDs auxmap) types.Cmp {
    	// Try to order these comparison by cost (cheaper first)
    	if v.Op != w.Op {
    		return lt2Cmp(v.Op < w.Op)
    	}
    	if v.AuxInt != w.AuxInt {
    		return lt2Cmp(v.AuxInt < w.AuxInt)
    	}
    	if len(v.Args) != len(w.Args) {
    		return lt2Cmp(len(v.Args) < len(w.Args))
    	}
    	if v.Op == OpPhi && v.Block != w.Block {
    		return lt2Cmp(v.Block.ID < w.Block.ID)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/tuple.go

    				if !tuple.Type.IsTuple() {
    					f.Fatalf("arg of tuple selector %s is not a tuple: %s", selector.String(), tuple.LongString())
    				}
    			case OpSelectN:
    				tuple = selector.Args[0]
    				idx = int(selector.AuxInt)
    				if !tuple.Type.IsResults() {
    					f.Fatalf("arg of result selector %s is not a results: %s", selector.String(), tuple.LongString())
    				}
    			}
    
    			// If there is a pre-existing selector in the target block then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 26 02:52:33 UTC 2021
    - 2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/deadcode.go

    				live[v.ID] = true
    				q = append(q, v)
    				if v.Pos.IsStmt() != src.PosNotStmt {
    					liveOrderStmts = append(liveOrderStmts, v)
    				}
    			}
    			if v.Op == OpInlMark {
    				if !liveInlIdx[int(v.AuxInt)] {
    					// We don't need marks for bodies that
    					// have been completely optimized away.
    					// TODO: save marks only for bodies which
    					// have a faulting instruction or a call?
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top