Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 70 for divlu (0.11 sec)

  1. src/runtime/sys_linux_loong64.s

    	SYSCALL
    	MOVW	R4, errno+16(FP)
    	RET
    
    // func usleep(usec uint32)
    TEXT runtime·usleep(SB),NOSPLIT,$16-4
    	MOVWU	usec+0(FP), R7
    	MOVV	$1000, R6
    	MULVU	R6, R7, R7
    	MOVV	$1000000000, R6
    
    	DIVVU	R6, R7, R5	// ts->tv_sec
    	REMVU	R6, R7, R4	// ts->tv_nsec
    	MOVV	R5, 8(R3)
    	MOVV	R4, 16(R3)
    
    	// nanosleep(&ts, 0)
    	ADDV	$8, R3, R4
    	MOVV	R0, R5
    	MOVV	$SYS_nanosleep, R11
    	SYSCALL
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/runtime/sys_linux_amd64.s

    	LEAQ	r+8(FP), DI
    	MOVL	flags+0(FP), SI
    	MOVL	$SYS_pipe2, AX
    	SYSCALL
    	MOVL	AX, errno+16(FP)
    	RET
    
    TEXT runtime·usleep(SB),NOSPLIT,$16
    	MOVL	$0, DX
    	MOVL	usec+0(FP), AX
    	MOVL	$1000000, CX
    	DIVL	CX
    	MOVQ	AX, 0(SP)
    	MOVL	$1000, AX	// usec to nsec
    	MULL	DX
    	MOVQ	AX, 8(SP)
    
    	// nanosleep(&ts, 0)
    	MOVQ	SP, DI
    	MOVL	$0, SI
    	MOVL	$SYS_nanosleep, AX
    	SYSCALL
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (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)) =>
    	(Select0 <typ.UInt64> (ADCQ x y (Select1 <types.TypeFlags> (NEGLflags c))))
    (Select1 (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)
  4. src/cmd/compile/internal/ssa/opGen.go

    			},
    		},
    	},
    	{
    		name:         "DIVLU",
    		argLen:       2,
    		clobberFlags: true,
    		asm:          x86.ADIVL,
    		reg: regInfo{
    			inputs: []inputInfo{
    				{0, 1},   // AX
    				{1, 251}, // AX CX BX SP BP SI DI
    			},
    			clobbers: 4, // DX
    			outputs: []outputInfo{
    				{0, 1}, // AX
    			},
    		},
    	},
    	{
    		name:         "DIVWU",
    		argLen:       2,
    		clobberFlags: true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
  5. src/runtime/sys_linux_386.s

    	LEAL	r+4(FP), BX
    	MOVL	flags+0(FP), CX
    	INVOKE_SYSCALL
    	MOVL	AX, errno+12(FP)
    	RET
    
    TEXT runtime·usleep(SB),NOSPLIT,$8
    	MOVL	$0, DX
    	MOVL	usec+0(FP), AX
    	MOVL	$1000000, CX
    	DIVL	CX
    	MOVL	AX, 0(SP)
    	MOVL	$1000, AX	// usec to nsec
    	MULL	DX
    	MOVL	AX, 4(SP)
    
    	// nanosleep(&ts, 0)
    	MOVL	$SYS_nanosleep, AX
    	LEAL	0(SP), BX
    	MOVL	$0, CX
    	INVOKE_SYSCALL
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    		return true
    	}
    }
    func rewriteValueLOONG64_OpDiv8u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Div8u x y)
    	// result: (DIVVU (ZeroExt8to64 x) (ZeroExt8to64 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpLOONG64DIVVU)
    		v0 := b.NewValue0(v.Pos, OpZeroExt8to64, 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)
  7. test/prove.go

    	return blk, rem
    }
    
    func rshu(x, y uint) int {
    	z := x >> y
    	if z <= x { // ERROR "Proved Leq64U$"
    		return 1
    	}
    	return 0
    }
    
    func divu(x, y uint) int {
    	z := x / y
    	if z <= x { // ERROR "Proved Leq64U$"
    		return 1
    	}
    	return 0
    }
    
    func modu1(x, y uint) int {
    	z := x % y
    	if z < y { // ERROR "Proved Less64U$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Div16  (Const16 [c])  (Const16 [d])) && d != 0 => (Const16 [c/d])
    (Div32  (Const32 [c])  (Const32 [d])) && d != 0 => (Const32 [c/d])
    (Div64  (Const64 [c])  (Const64 [d])) && d != 0 => (Const64 [c/d])
    (Div8u  (Const8  [c])  (Const8  [d])) && d != 0 => (Const8  [int8(uint8(c)/uint8(d))])
    (Div16u (Const16 [c])  (Const16 [d])) && d != 0 => (Const16 [int16(uint16(c)/uint16(d))])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// For Div16, Div32 and Div64, AuxInt non-zero means that the divisor has been proved to be not -1
    	// or that the dividend is not the most negative value.
    	{name: "Div8", argLength: 2},  // arg0 / arg1, signed
    	{name: "Div8u", argLength: 2}, // arg0 / arg1, unsigned
    	{name: "Div16", argLength: 2, aux: "Bool"},
    	{name: "Div16u", argLength: 2},
    	{name: "Div32", argLength: 2, aux: "Bool"},
    	{name: "Div32u", argLength: 2},
    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/compile/internal/ssa/rewritePPC64.go

    		v.AddArg2(v0, v1)
    		return true
    	}
    }
    func rewriteValuePPC64_OpDiv8u(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Div8u x y)
    	// result: (DIVWU (ZeroExt8to32 x) (ZeroExt8to32 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpPPC64DIVWU)
    		v0 := b.NewValue0(v.Pos, OpZeroExt8to32, 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)
Back to top