Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for intconst (0.15 sec)

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

    (MOVHUreg x:(MOVHUload _ _)) => (MOVWreg x)
    
    // fold extensions and ANDs together
    (MOVBUreg (ANDconst [c] x)) => (ANDconst [c&0xff] x)
    (MOVHUreg (ANDconst [c] x)) => (ANDconst [c&0xffff] x)
    (MOVBreg (ANDconst [c] x)) && c & 0x80 == 0 => (ANDconst [c&0x7f] x)
    (MOVHreg (ANDconst [c] x)) && c & 0x8000 == 0 => (ANDconst [c&0x7fff] x)
    
    // fold double extensions
    (MOVBreg x:(MOVBreg _)) => (MOVWreg x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (AND x (MOVDconst [c])) && isU16Bit(c) => (ANDconst [c] x)
    (XOR x (MOVDconst [c])) && isU32Bit(c) => (XORconst [c] x)
    (OR x (MOVDconst [c])) && isU32Bit(c) => (ORconst [c] x)
    
    // Simplify consts
    (ANDconst [c] (ANDconst [d] x)) => (ANDconst [c&d] x)
    (ORconst [c] (ORconst [d] x)) => (ORconst [c|d] x)
    (XORconst [c] (XORconst [d] x)) => (XORconst [c^d] x)
    (ANDconst [-1] x) => x
    (ANDconst [0] _) => (MOVDconst [0])
    (XORconst [0] x) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    			} else if n.Define[0] == '\'' {
    				if _, err := parser.ParseExpr(n.Define); err == nil {
    					n.Kind = "iconst"
    					n.Const = n.Define
    				}
    			} else if n.Define[0] == '"' {
    				if _, err := parser.ParseExpr(n.Define); err == nil {
    					n.Kind = "sconst"
    					n.Const = n.Define
    				}
    			}
    
    			if n.IsConst() {
    				continue
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // Remove redundant *const ops
    (ADDconst [0] x) => x
    (ADDWconst [c] x) && int32(c)==0 => x
    (SUBconst [0] x) => x
    (SUBWconst [c] x) && int32(c) == 0 => x
    (ANDconst [0] _)                 => (MOVDconst [0])
    (ANDWconst [c] _) && int32(c)==0  => (MOVDconst [0])
    (ANDconst [-1] x)                => x
    (ANDWconst [c] x) && int32(c)==-1 => x
    (ORconst [0] x)                  => x
    (ORWconst [c] x) && int32(c)==0   => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewrite.go

    // and return mask & m.
    func mergePPC64RShiftMask(m, s, nbits int64) int64 {
    	smask := uint64((1<<uint(nbits))-1) >> uint(s)
    	return m & int64(smask)
    }
    
    // Combine (ANDconst [m] (SRWconst [s])) into (RLWINM [y]) or return 0
    func mergePPC64AndSrwi(m, s int64) int64 {
    	mask := mergePPC64RShiftMask(m, s, 32)
    	if !isPPC64WordRotateMask(mask) {
    		return 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "FDIVD", argLength: 2, reg: fp21, asm: "FDIVD"},                      // arg0 / arg1
    
    		{name: "AND", argLength: 2, reg: gp21, asm: "AND", commutative: true}, // arg0 & arg1
    		{name: "ANDconst", argLength: 1, reg: gp11, asm: "AND", aux: "Int64"}, // arg0 & auxInt
    		{name: "OR", argLength: 2, reg: gp21, asm: "ORR", commutative: true},  // arg0 | arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  7. src/go/types/expr.go

    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    			// If we reach here it's because of number under-/overflow.
    			// TODO(gri) setConst (and in turn the go/constant package)
    			// should return an error describing the issue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/expr.go

    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    			// If we reach here it's because of number under-/overflow.
    			// TODO(gri) setConst (and in turn the go/constant package)
    			// should return an error describing the issue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/arm/asm5.go

    		// need to keep their RR shifts.
    		fixShift := func(a *obj.Addr) {
    			if a.Type == obj.TYPE_SHIFT {
    				typ := a.Offset & SHIFT_RR
    				isConst := a.Offset&(1<<4) == 0
    				amount := a.Offset >> 7 & 0x1f
    				if isConst && amount == 0 && (typ == SHIFT_LR || typ == SHIFT_AR || typ == SHIFT_RR) {
    					a.Offset -= typ
    					a.Offset += SHIFT_LL
    				}
    			}
    		}
    		fixShift(&p.From)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 20:51:01 UTC 2023
    - 79.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/S390XOps.go

    		{name: "ANDW", argLength: 2, reg: gp21, asm: "ANDW", commutative: true, clobberFlags: true},                                                                  // arg0 & arg1
    		{name: "ANDconst", argLength: 1, reg: gp11, asm: "AND", aux: "Int64", resultInArg0: true, clobberFlags: true},                                                // arg0 & auxint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 52.5K bytes
    - Viewed (0)
Back to top