Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for cmovnle (0.08 sec)

  1. test/codegen/condmove.go

    func cmovinvert6(x, y uint64) uint64 {
    	if x >= gusink {
    		y = -y
    	}
    	// amd64:"CMOVQLS"
    	return y
    }
    
    func cmovload(a []int, i int, b bool) int {
    	if b {
    		i++
    	}
    	// See issue 26306
    	// amd64:-"CMOVQNE"
    	return a[i]
    }
    
    func cmovstore(a []int, i int, b bool) {
    	if b {
    		i++
    	}
    	// amd64:"CMOVQNE"
    	a[i] = 7
    }
    
    var r0, r1, r2, r3, r4, r5 int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:57:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. test/codegen/bmi.go

    		r = a
    	} else {
    		r = b
    	}
    	// amd64/v3:"CMOVQNE",-"TESTQ",-"CALL"
    	return r * 2 // force return blocks joining
    }
    
    func isNotPowerOfTwoSelect32(x, a, b int32) int32 {
    	var r int32
    	// amd64/v3:"BLSRL",-"TESTL",-"CALL"
    	if isNotPowerOfTwo32(x) {
    		r = a
    	} else {
    		r = b
    	}
    	// amd64/v3:"CMOVLNE",-"TESTL",-"CALL"
    	return r * 2 // force return blocks joining
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 04:58:59 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. src/internal/bytealg/compare_mipsx.s

    #include "textflag.h"
    
    TEXT ·Compare(SB),NOSPLIT,$0-28
    	MOVW	a_base+0(FP), R3
    	MOVW	b_base+12(FP), R4
    	MOVW	a_len+4(FP), R1
    	MOVW	b_len+16(FP), R2
    	BEQ	R3, R4, samebytes
    	SGTU	R1, R2, R7
    	MOVW	R1, R8
    	CMOVN	R7, R2, R8	// R8 is min(R1, R2)
    
    	ADDU	R3, R8	// R3 is current byte in a, R8 is last byte in a to compare
    loop:
    	BEQ	R3, R8, samebytes
    
    	MOVBU	(R3), R6
    	ADDU	$1, R3
    	MOVBU	(R4), R7
    	ADDU	$1, R4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  4. src/internal/bytealg/compare_amd64.s

    // input:
    //   SI = a
    //   DI = b
    //   BX = alen
    //   DX = blen
    // output:
    //   AX = output (-1/0/1)
    TEXT cmpbody<>(SB),NOSPLIT,$0-0
    	CMPQ	SI, DI
    	JEQ	allsame
    	CMPQ	BX, DX
    	MOVQ	DX, R8
    	CMOVQLT	BX, R8 // R8 = min(alen, blen) = # of bytes to compare
    	CMPQ	R8, $8
    	JB	small
    
    	CMPQ	R8, $63
    	JBE	loop
    #ifndef hasAVX2
    	CMPB	internal∕cpu·X86+const_offsetX86HasAVX2(SB), $1
    	JEQ     big_loop_avx2
    	JMP	big_loop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:17:01 UTC 2022
    - 4.3K bytes
    - Viewed (0)
Back to top