Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for signext21 (0.24 sec)

  1. src/cmd/link/internal/arm64/asm.go

    		}
    		out.Write64(uint64(elf.R_AARCH64_CALL26) | uint64(elfsym)<<32)
    
    	}
    	out.Write64(uint64(r.Xadd))
    
    	return true
    }
    
    // sign-extends from 21, 24-bit.
    func signext21(x int64) int64 { return x << (64 - 21) >> (64 - 21) }
    func signext24(x int64) int64 { return x << (64 - 24) >> (64 - 24) }
    
    func machoreloc1(arch *sys.Arch, out *ld.OutBuf, ldr *loader.Loader, s loader.Sym, r loader.ExtReloc, sectoff int64) bool {
    	var v uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  2. src/internal/buildcfg/cfg.go

    	})
    	year, _ := strconv.Atoi(v[:i])
    	return year
    }
    
    type gowasmFeatures struct {
    	SatConv bool
    	SignExt bool
    }
    
    func (f gowasmFeatures) String() string {
    	var flags []string
    	if f.SatConv {
    		flags = append(flags, "satconv")
    	}
    	if f.SignExt {
    		flags = append(flags, "signext")
    	}
    	return strings.Join(flags, ",")
    }
    
    func gowasm() (f gowasmFeatures) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/arm/asm.go

    		v = ld.IMAGE_REL_ARM_ADDR32
    
    	case objabi.R_PEIMAGEOFF:
    		v = ld.IMAGE_REL_ARM_ADDR32NB
    	}
    
    	out.Write16(uint16(v))
    
    	return true
    }
    
    // sign extend a 24-bit integer.
    func signext24(x int64) int32 {
    	return (int32(x) << 8) >> 8
    }
    
    // encode an immediate in ARM's imm12 format. copied from ../../../internal/obj/arm/asm5.go
    func immrot(v uint32) uint32 {
    	for i := 0; i < 16; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (ZeroExt16to(64|32)   x:(I64Load16U _ _)) => x
    (ZeroExt8to(64|32|16) x:(I64Load8U  _ _)) => x
    (SignExt32to64        x) && buildcfg.GOWASM.SignExt => (I64Extend32S x)
    (SignExt8to(64|32|16) x) && buildcfg.GOWASM.SignExt => (I64Extend8S x)
    (SignExt16to(64|32)   x) && buildcfg.GOWASM.SignExt => (I64Extend16S x)
    (SignExt32to64        x) => (I64ShrS (I64Shl x (I64Const [32])) (I64Const [32]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Neq(8|16) x y) && x.Type.IsSigned() && y.Type.IsSigned() => (NotEqual (CMPW (SignExt(8|16)to32 x) (SignExt(8|16)to32 y)))
    (Neq(8|16) x y)  => (NotEqual (CMPW (ZeroExt(8|16)to32 x) (ZeroExt(8|16)to32 y)))
    (Neq(32|64|Ptr) x y) => (NotEqual ((CMPW|CMP|CMP) x y))
    (Neq(32|64)F x y) => (NotEqual (FCMPU x y))
    
    (Less(8|16) x y)  => (LessThan (CMPW (SignExt(8|16)to32 x) (SignExt(8|16)to32 y)))
    (Less(32|64) x y) => (LessThan ((CMPW|CMP) 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)
  6. src/cmd/compile/internal/ssa/rewriteWasm.go

    		x := v_0
    		if x.Op != OpWasmI64Load16S {
    			break
    		}
    		v.copyOf(x)
    		return true
    	}
    	// match: (SignExt16to32 x)
    	// cond: buildcfg.GOWASM.SignExt
    	// result: (I64Extend16S x)
    	for {
    		x := v_0
    		if !(buildcfg.GOWASM.SignExt) {
    			break
    		}
    		v.reset(OpWasmI64Extend16S)
    		v.AddArg(x)
    		return true
    	}
    	// match: (SignExt16to32 x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 108.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/help/helpdoc.go

    	  feature build tags.
    	- For GOARCH=riscv64,
    	  GORISCV64=rva20u64 and rva22u64 correspond to the riscv64.rva20u64
    	  and riscv64.rva22u64 build tags.
    	- For GOARCH=wasm, GOWASM=satconv and signext
    	  correspond to the wasm.satconv and wasm.signext feature build tags.
    
    For GOARCH=amd64, arm, ppc64, ppc64le, and riscv64, a particular feature level
    sets the feature build tags for all previous levels as well.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (Div32F ...) => (FDIVS ...)
    (Div64F ...) => (FDIVD ...)
    
    (Mod64 x y) => (MOD x y)
    (Mod32 x y) => (MODW x y)
    (Mod64u ...) => (UMOD ...)
    (Mod32u ...) => (UMODW ...)
    (Mod(16|8)  x y) => (MODW  (SignExt(16|8)to32 x) (SignExt(16|8)to32 y))
    (Mod(16|8)u x y) => (UMODW (ZeroExt(16|8)to32 x) (ZeroExt(16|8)to32 y))
    
    // (x + y) / 2 with x>=y    =>    (x - y) / 2 + y
    (Avg64u <t> x y) => (ADD (SRLconst <t> (SUB <t> x y) [1]) y)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/genericOps.go

    // of that op are the given number of bits wide. There is no notion of
    // "sign", so Add32 can be used both for signed and unsigned 32-bit
    // addition.
    
    // Signed/unsigned is explicit with the extension ops
    // (SignExt*/ZeroExt*) and implicit as the arg to some opcodes
    // (e.g. the second argument to shifts is unsigned). If not mentioned,
    // all args take signed inputs, or don't care whether their inputs
    // are signed or unsigned.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //   - For GOARCH=riscv64,
    //     GORISCV64=rva20u64 and rva22u64 correspond to the riscv64.rva20u64
    //     and riscv64.rva22u64 build tags.
    //   - For GOARCH=wasm, GOWASM=satconv and signext
    //     correspond to the wasm.satconv and wasm.signext feature build tags.
    //
    // For GOARCH=amd64, arm, ppc64, ppc64le, and riscv64, a particular feature level
    // sets the feature build tags for all previous levels as well.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top