Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for Mod32u (0.14 sec)

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

    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod32u x y)
    	// cond: buildcfg.GOPPC64 >= 9
    	// result: (MODUW x y)
    	for {
    		x := v_0
    		y := v_1
    		if !(buildcfg.GOPPC64 >= 9) {
    			break
    		}
    		v.reset(OpPPC64MODUW)
    		v.AddArg2(x, y)
    		return true
    	}
    	// match: (Mod32u x y)
    	// cond: buildcfg.GOPPC64 <= 8
    	// result: (SUB x (MULLW y (DIVWU x y)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewritegeneric.go

    <typ.UInt32> [int32(c)])))) (Mul64 <typ.UInt64> (ZeroExt32to64 <typ.UInt64> (Mod32u <typ.UInt32> (Trunc64to32 <typ.UInt32> (Rsh64Ux64 <typ.UInt64> x (Const64 <typ.UInt64> [32]))) (Const32 <typ.UInt32> [int32(c)]))) (Const64 <typ.UInt64> [int64((1<<32)/c)]))) (ZeroExt32to64 (Div32u <typ.UInt32> (Add32 <typ.UInt32> (Mod32u <typ.UInt32> (Trunc64to32 <typ.UInt32> x) (Const32 <typ.UInt32> [int32(c)])) (Mul32 <typ.UInt32> (Mod32u <typ.UInt32> (Trunc64to32 <typ.UInt32> (Rsh64Ux64 <typ.UInt64> x (Const64 <typ.UInt64>...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (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))
    (Mod(16|8)u x y) => (UMODW (ZeroExt(16|8)to32 x) (ZeroExt(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)
  4. src/cmd/compile/internal/ssa/rewriteWasm.go

    		return true
    	}
    	return false
    }
    func rewriteValueWasm_OpMod32u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod32u x y)
    	// result: (I64RemU (ZeroExt32to64 x) (ZeroExt32to64 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpWasmI64RemU)
    		v0 := b.NewValue0(v.Pos, OpZeroExt32to64, typ.UInt64)
    		v0.AddArg(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)
  5. src/cmd/compile/internal/ssa/rewriteARM.go

    		return true
    	}
    }
    func rewriteValueARM_OpMod16u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod16u x y)
    	// result: (Mod32u (ZeroExt16to32 x) (ZeroExt16to32 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpMod32u)
    		v0 := b.NewValue0(v.Pos, OpZeroExt16to32, typ.UInt32)
    		v0.AddArg(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewriteMIPS.go

    		return true
    	}
    }
    func rewriteValueMIPS_OpMod32u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod32u x y)
    	// result: (Select0 (DIVU x y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpSelect0)
    		v0 := b.NewValue0(v.Pos, OpMIPSDIVU, types.NewTuple(typ.UInt32, typ.UInt32))
    		v0.AddArg2(x, y)
    		v.AddArg(v0)
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 176.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    		v.AddArg2(v0, v1)
    		return true
    	}
    }
    func rewriteValueLOONG64_OpMod32u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod32u x y)
    	// result: (REMVU (ZeroExt32to64 x) (ZeroExt32to64 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpLOONG64REMVU)
    		v0 := b.NewValue0(v.Pos, OpZeroExt32to64, typ.UInt64)
    		v0.AddArg(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/fixedbugs_test.go

    	}
    
    	if strings.Contains(string(out), "unknown line number") {
    		t.Errorf("line number missing in assembly:\n%s", out)
    	}
    }
    
    var issue16214src = `
    package main
    
    func Mod32(x uint32) uint32 {
    	return x % 3 // frontend rewrites it as HMUL with 2863311531, the LITERAL node has unknown Pos
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteMIPS64.go

    		v.AddArg(v0)
    		return true
    	}
    }
    func rewriteValueMIPS64_OpMod32u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod32u x y)
    	// result: (Select0 (DIVVU (ZeroExt32to64 x) (ZeroExt32to64 y)))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpSelect0)
    		v0 := b.NewValue0(v.Pos, OpMIPS64DIVVU, types.NewTuple(typ.UInt64, typ.UInt64))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 211.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewriteS390X.go

    	}
    }
    func rewriteValueS390X_OpMod32u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Mod32u x y)
    	// result: (MODWU (MOVWZreg x) y)
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpS390XMODWU)
    		v0 := b.NewValue0(v.Pos, OpS390XMOVWZreg, typ.UInt64)
    		v0.AddArg(x)
    		v.AddArg2(v0, y)
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
Back to top