Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for OpConst8 (0.31 sec)

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

    	// cond: (z.Op != OpConst8 && x.Op != OpConst8)
    	// result: (Add8 i (Sub8 <t> x z))
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			if v_0.Op != OpSub8 {
    				continue
    			}
    			z := v_0.Args[1]
    			i := v_0.Args[0]
    			if i.Op != OpConst8 {
    				continue
    			}
    			t := i.Type
    			x := v_1
    			if !(z.Op != OpConst8 && x.Op != OpConst8) {
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/zcse.go

    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))
    	default:
    		return 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)
  3. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Add16 (Add16 i:(Const16 <t>) z) x) && (z.Op != OpConst16 && x.Op != OpConst16) => (Add16 i (Add16 <t> z x))
    (Add8  (Add8  i:(Const8  <t>) z) x) && (z.Op != OpConst8  && x.Op != OpConst8)  => (Add8  i (Add8  <t> z x))
    
    // x + (C - z) -> C + (x - z)
    (Add64 (Sub64 i:(Const64 <t>) z) x) && (z.Op != OpConst64 && x.Op != OpConst64) => (Add64 i (Sub64 <t> x z))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/fuse_comparisons.go

    // getConstIntArgIndex returns the index of the first argument that is a
    // constant integer or -1 if no such argument exists.
    func getConstIntArgIndex(v *Value) int {
    	for i, a := range v.Args {
    		switch a.Op {
    		case OpConst8, OpConst16, OpConst32, OpConst64:
    			return i
    		}
    	}
    	return -1
    }
    
    // isSignedInequality reports whether op represents the inequality < or ≤
    // in the signed domain.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/prove.go

    				case 1:
    					min = int64(int8(w.AuxInt) - int8(delta))
    					max = int64(int8(^uint8(0)>>1) - int8(delta))
    
    					vmin = parent.NewValue0I(parent.Pos, OpConst8, parent.Func.Config.Types.Int8, min)
    					vmax = parent.NewValue0I(parent.Pos, OpConst8, parent.Func.Config.Types.Int8, max)
    
    				default:
    					panic("unimplemented")
    				}
    
    				if min < max {
    					// Record that x > min and max >= x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/sccp.go

    	if !exist {
    		return lattice{top, nil} // optimistically for un-visited value
    	}
    	return lt
    }
    
    func isConst(val *Value) bool {
    	switch val.Op {
    	case OpConst64, OpConst32, OpConst16, OpConst8,
    		OpConstBool, OpConst32F, OpConst64F:
    		return true
    	default:
    		return false
    	}
    }
    
    // buildDefUses builds def-use chain for some values early, because once the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/numberlines.go

    	case OpAddr, OpLocalAddr, OpOffPtr, OpStructSelect, OpPhi, OpITab, OpIData,
    		OpIMake, OpStringMake, OpSliceMake, OpStructMake0, OpStructMake1, OpStructMake2, OpStructMake3, OpStructMake4,
    		OpConstBool, OpConst8, OpConst16, OpConst32, OpConst64, OpConst32F, OpConst64F, OpSB, OpSP,
    		OpArgIntReg, OpArgFloatReg:
    		return true
    	}
    	return false
    }
    
    // nextGoodStatementIndex returns an index at i or later that is believed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 21:26:13 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/value.go

    func (v *Value) AuxUnsigned() uint64 {
    	c := v.AuxInt
    	switch v.Op {
    	case OpConst64:
    		return uint64(c)
    	case OpConst32:
    		return uint64(uint32(c))
    	case OpConst16:
    		return uint64(uint16(c))
    	case OpConst8:
    		return uint64(uint8(c))
    	}
    	v.Fatalf("op %s isn't OpConst*", v.Op)
    	return 0
    }
    
    func (v *Value) AuxFloat() float64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/phiopt.go

    			}
    		}
    	}
    }
    
    func phioptint(v *Value, b0 *Block, reverse int) {
    	a0 := v.Args[0]
    	a1 := v.Args[1]
    	if a0.Op != a1.Op {
    		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:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/memcombine.go

    	ptr := a[0].store.Args[0]
    
    	// Check for constant stores
    	isConst := true
    	for i := int64(0); i < n; i++ {
    		switch a[i].store.Args[1].Op {
    		case OpConst32, OpConst16, OpConst8, OpConstBool:
    		default:
    			isConst = false
    			break
    		}
    	}
    	if isConst {
    		// Modify root to do all the stores.
    		var c int64
    		mask := int64(1)<<(8*size) - 1
    		for i := int64(0); i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top