Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for andc (2.09 sec)

  1. test/codegen/bits.go

    	return b&0x80 == 0x80
    }
    
    // Check AND masking on arm64 (Issue #19857)
    
    func and_mask_1(a uint64) uint64 {
    	// arm64:`AND\t`
    	return a & ((1 << 63) - 1)
    }
    
    func and_mask_2(a uint64) uint64 {
    	// arm64:`AND\t`
    	return a & (1 << 63)
    }
    
    func and_mask_3(a, b uint32) (uint32, uint32) {
    	// arm/7:`BIC`,-`AND`
    	a &= 0xffffaaaa
    	// arm/7:`BFC`,-`AND`,-`BIC`
    	b &= 0xffc003ff
    	return a, b
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (MOVWZreg ((OR|XOR|AND) <t> x (MOVWZreg y))) => (MOVWZreg ((OR|XOR|AND) <t> x y))
    (MOVHZreg ((OR|XOR|AND) <t> x (MOVWZreg y))) => (MOVHZreg ((OR|XOR|AND) <t> x y))
    (MOVHZreg ((OR|XOR|AND) <t> x (MOVHZreg y))) => (MOVHZreg ((OR|XOR|AND) <t> x y))
    (MOVBZreg ((OR|XOR|AND) <t> x (MOVWZreg y))) => (MOVBZreg ((OR|XOR|AND) <t> x y))
    (MOVBZreg ((OR|XOR|AND) <t> x (MOVHZreg y))) => (MOVBZreg ((OR|XOR|AND) <t> x y))
    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/compile/internal/ssa/rewritePPC64.go

    				continue
    			}
    			v.reset(OpPPC64RLWINM)
    			v.AuxInt = int64ToAuxInt(mergePPC64AndSrwi(m, s))
    			v.AddArg(x)
    			return true
    		}
    		break
    	}
    	// match: (AND x (NOR y y))
    	// result: (ANDN x y)
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			x := v_0
    			if v_1.Op != OpPPC64NOR {
    				continue
    			}
    			y := v_1.Args[1]
    			if y != v_1.Args[0] {
    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/rewrite.go

    	return (v&vp == 0 || vn&vpn == 0) && v != 0
    }
    
    // Compress mask and shift into single value of the form
    // me | mb<<8 | rotate<<16 | nbits<<24 where me and mb can
    // be used to regenerate the input mask.
    func encodePPC64RotateMask(rotate, mask, nbits int64) int64 {
    	var mb, me, mbn, men int
    
    	// Determine boundaries and then decode them
    	if mask == 0 || ^mask == 0 || rotate >= nbits {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/ssa.go

    	r := s.variable(ternaryVar, x.Type)
    	delete(s.vars, ternaryVar)
    	return r
    }
    
    // condBranch evaluates the boolean expression cond and branches to yes
    // if cond is true and no if cond is false.
    // This function is intended to handle && and || better than just calling
    // s.expr(cond) and branching on the result.
    func (s *state) condBranch(cond ir.Node, yes, no *ssa.Block, likely int8) {
    	switch cond.Op() {
    	case ir.OANDAND:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top