Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ConstDivs (0.28 sec)

  1. test/codegen/arithmetic.go

    	// arm:"SRA\t[$]6",-".*udiv"
    	// arm64:"ASR\t[$]6",-"SDIV"
    	// ppc64x:"SRAD"
    	b := n2 / 64 // signed
    
    	return a, b
    }
    
    // Check that constant divisions get turned into MULs
    func ConstDivs(n1 uint, n2 int) (uint, int) {
    	// amd64:"MOVQ\t[$]-1085102592571150095","MULQ",-"DIVQ"
    	// 386:"MOVL\t[$]-252645135","MULL",-"DIVL"
    	// arm64:`MOVD`,`UMULH`,-`DIV`
    	// arm:`MOVW`,`MUL`,-`.*udiv`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top