Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Mod64 (0.32 sec)

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

    (Mod32 <t> n (Const32 [c])) && isNonNegative(n) && isPowerOfTwo32(c) => (And32 n (Const32 <t> [c-1]))
    (Mod64 <t> n (Const64 [c])) && isNonNegative(n) && isPowerOfTwo64(c) => (And64 n (Const64 <t> [c-1]))
    (Mod64 n (Const64 [-1<<63])) && isNonNegative(n)                   => n
    
    // Signed mod by negative constant.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// For Mod16, Mod32 and Mod64, AuxInt non-zero means that the divisor has been proved to be not -1.
    	{name: "Mod8", argLength: 2},  // arg0 % arg1, signed
    	{name: "Mod8u", argLength: 2}, // arg0 % arg1, unsigned
    	{name: "Mod16", argLength: 2, aux: "Bool"},
    	{name: "Mod16u", argLength: 2},
    	{name: "Mod32", argLength: 2, aux: "Bool"},
    	{name: "Mod32u", argLength: 2},
    	{name: "Mod64", argLength: 2, aux: "Bool"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Mod16u x y) => (Mod32u (ZeroExt16to32 x) (ZeroExt16to32 y))
    (Mod8 x y) => (Mod32 (SignExt8to32 x) (SignExt8to32 y))
    (Mod8u x y) => (Mod32u (ZeroExt8to32 x) (ZeroExt8to32 y))
    (Mod64 x y) && buildcfg.GOPPC64 >=9 => (MODSD x y)
    (Mod64 x y) && buildcfg.GOPPC64 <=8 => (SUB x (MULLD y (DIVD x y)))
    (Mod64u x y) && buildcfg.GOPPC64 >= 9 => (MODUD x y)
    (Mod64u x y) && buildcfg.GOPPC64 <= 8 => (SUB x (MULLD y (DIVDU 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)
  4. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (Div16u x y) => (DIVVU (ZeroExt16to64 x) (ZeroExt16to64 y))
    (Div8 x y) => (DIVV (SignExt8to64 x) (SignExt8to64 y))
    (Div8u x y) => (DIVVU (ZeroExt8to64 x) (ZeroExt8to64 y))
    (Div(32|64)F ...) => (DIV(F|D) ...)
    
    (Mod64 x y) => (REMV x y)
    (Mod64u ...) => (REMVU ...)
    (Mod32 x y) => (REMV (SignExt32to64 x) (SignExt32to64 y))
    (Mod32u x y) => (REMVU (ZeroExt32to64 x) (ZeroExt32to64 y))
    (Mod16 x y) => (REMV (SignExt16to64 x) (SignExt16to64 y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    // (x + y) / 2 => (x / 2) + (y / 2) + (x & y & 1)
    (Avg64u <t> x y) => (ADD (ADD <t> (SRLI <t> [1] x) (SRLI <t> [1] y)) (ANDI <t> [1] (AND <t> x y)))
    
    (Mod64 x y [false])  => (REM x y)
    (Mod64u ...) => (REMU  ...)
    (Mod32 x y [false])  => (REMW x y)
    (Mod32u ...) => (REMUW ...)
    (Mod16 x y [false])  => (REMW  (SignExt16to32 x) (SignExt16to32 y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/S390X.rules

    (Div8u  x y) => (DIVWU (MOVBZreg x) (MOVBZreg y))
    
    (Hmul(64|64u) ...) => (MULH(D|DU) ...)
    (Hmul32  x y) => (SRDconst [32] (MULLD (MOVWreg x) (MOVWreg y)))
    (Hmul32u x y) => (SRDconst [32] (MULLD (MOVWZreg x) (MOVWZreg y)))
    
    (Mod64 x y) => (MODD x y)
    (Mod64u ...) => (MODDU ...)
    // MODW/MODWU has a 64-bit dividend and a 32-bit divisor,
    // so a sign/zero extension of the dividend is required.
    (Mod32  x y) => (MODW  (MOVWreg x) y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (Div8u  x y) => (UDIVW (ZeroExt8to32  x) (ZeroExt8to32  y))
    (Div64u ...) => (UDIV  ...)
    (Div32u ...) => (UDIVW ...)
    (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))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewritegeneric.go

    		return true
    	}
    	// match: (Mod64 n (Const64 [-1<<63]))
    	// cond: isNonNegative(n)
    	// result: n
    	for {
    		n := v_0
    		if v_1.Op != OpConst64 || auxIntToInt64(v_1.AuxInt) != -1<<63 || !(isNonNegative(n)) {
    			break
    		}
    		v.copyOf(n)
    		return true
    	}
    	// match: (Mod64 <t> n (Const64 [c]))
    	// cond: c < 0 && c != -1<<63
    	// result: (Mod64 <t> n (Const64 <t> [-c]))
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    		v1.AddArg(y)
    		v.AddArg2(v0, v1)
    		return true
    	}
    }
    func rewriteValueLOONG64_OpMod64(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (Mod64 x y)
    	// result: (REMV x y)
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpLOONG64REMV)
    		v.AddArg2(x, y)
    		return true
    	}
    }
    func rewriteValueLOONG64_OpMod8(v *Value) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewritePPC64.go

    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod64 x y)
    	// cond: buildcfg.GOPPC64 >=9
    	// result: (MODSD x y)
    	for {
    		x := v_0
    		y := v_1
    		if !(buildcfg.GOPPC64 >= 9) {
    			break
    		}
    		v.reset(OpPPC64MODSD)
    		v.AddArg2(x, y)
    		return true
    	}
    	// match: (Mod64 x y)
    	// cond: buildcfg.GOPPC64 <=8
    	// result: (SUB x (MULLD y (DIVD x y)))
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
Back to top