Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for divwo (0.1 sec)

  1. src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go

    		{name: "DIV", argLength: 2, reg: gp21, asm: "DIV", typ: "Int64"}, // arg0 / arg1
    		{name: "DIVU", argLength: 2, reg: gp21, asm: "DIVU", typ: "UInt64"},
    		{name: "DIVW", argLength: 2, reg: gp21, asm: "DIVW", typ: "Int32"},
    		{name: "DIVUW", argLength: 2, reg: gp21, asm: "DIVUW", typ: "UInt32"},
    		{name: "REM", argLength: 2, reg: gp21, asm: "REM", typ: "Int64"}, // arg0 % arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. src/math/big/natconv_test.go

    	i := x.bitLen()/log2(Word(base)) + 1 // +1: round up
    	s := make([]byte, i)
    
    	// don't destroy x
    	q := nat(nil).set(x)
    
    	// convert
    	for len(q) > 0 {
    		i--
    		var r Word
    		q, r = q.divW(q, Word(base))
    		s[i] = digits[r]
    	}
    
    	return s[i:]
    }
    
    var strTests = []struct {
    	x nat    // nat value to be converted
    	b int    // conversion base
    	s string // expected result
    }{
    	{nil, 2, "0"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 16.8K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/riscv64.s

    	MULHSU	X5, X6, X7				// b3235302
    	MULW	X5, X6, X7				// bb035302
    	DIV	X5, X6, X7				// b3435302
    	DIVU	X5, X6, X7				// b3535302
    	REM	X5, X6, X7				// b3635302
    	REMU	X5, X6, X7				// b3735302
    	DIVW	X5, X6, X7				// bb435302
    	DIVUW	X5, X6, X7				// bb535302
    	REMW	X5, X6, X7				// bb635302
    	REMUW	X5, X6, X7				// bb735302
    
    	// 8.2: Load-Reserved/Store-Conditional
    	LRW	(X5), X6				// 2fa30214
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (Hmul(64|32) ...) => (HMUL(Q|L) ...)
    (Hmul(64|32)u ...) => (HMUL(Q|L)U ...)
    
    (Div(64|32|16) [a] x y) => (Select0 (DIV(Q|L|W) [a] x y))
    (Div8  x y) => (Select0 (DIVW  (SignExt8to16 x) (SignExt8to16 y)))
    (Div(64|32|16)u x y) => (Select0 (DIV(Q|L|W)U x y))
    (Div8u x y) => (Select0 (DIVWU (ZeroExt8to16 x) (ZeroExt8to16 y)))
    (Div(32|64)F ...) => (DIVS(S|D) ...)
    
    (Select0 (Add64carry x y c)) =>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		{name: "DIVW", argLength: 2, reg: gp11div, typ: "(Int16,Int16)", asm: "IDIVW", aux: "Bool", clobberFlags: true},
    		{name: "DIVQU", argLength: 2, reg: gp11div, typ: "(UInt64,UInt64)", asm: "DIVQ", clobberFlags: true},
    		{name: "DIVLU", argLength: 2, reg: gp11div, typ: "(UInt32,UInt32)", asm: "DIVL", clobberFlags: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  6. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (Select0 (Mul64uhilo x y)) => (UMULH x y)
    (Select1 (Mul64uhilo x y)) => (MUL x y)
    
    (Div64 [false] x y) => (DIV  x y)
    (Div32 [false] x y) => (DIVW x y)
    (Div16 [false] x y) => (DIVW (SignExt16to32 x) (SignExt16to32 y))
    (Div16u x y) => (UDIVW (ZeroExt16to32 x) (ZeroExt16to32 y))
    (Div8   x y) => (DIVW  (SignExt8to32  x) (SignExt8to32  y))
    (Div8u  x y) => (UDIVW (ZeroExt8to32  x) (ZeroExt8to32  y))
    (Div64u ...) => (UDIV  ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewritePPC64.go

    	}
    	return false
    }
    func rewriteValuePPC64_OpDiv16u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Div16u x y)
    	// result: (DIVWU (ZeroExt16to32 x) (ZeroExt16to32 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpPPC64DIVWU)
    		v0 := b.NewValue0(v.Pos, OpZeroExt16to32, typ.UInt32)
    		v0.AddArg(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewriteS390X.go

    		return true
    	}
    }
    func rewriteValueS390X_OpDiv16u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Div16u x y)
    	// result: (DIVWU (MOVHZreg x) (MOVHZreg y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpS390XDIVWU)
    		v0 := b.NewValue0(v.Pos, OpS390XMOVHZreg, typ.UInt64)
    		v0.AddArg(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "UDIV", argLength: 2, reg: gp21, asm: "UDIV"},                                                          // arg0 / arg1, unsigned
    		{name: "DIVW", argLength: 2, reg: gp21, asm: "SDIVW"},                                                         // arg0 / arg1, signed, 32 bit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    		return true
    	}
    }
    func rewriteValueRISCV64_OpDiv16(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Div16 x y [false])
    	// result: (DIVW (SignExt16to32 x) (SignExt16to32 y))
    	for {
    		if auxIntToBool(v.AuxInt) != false {
    			break
    		}
    		x := v_0
    		y := v_1
    		v.reset(OpRISCV64DIVW)
    		v0 := b.NewValue0(v.Pos, OpSignExt16to32, typ.Int32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
Back to top