Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CmpToZero_ex1 (0.17 sec)

  1. test/codegen/comparisons.go

    // 'comparing to zero' expressions
    
    // var + const
    // 'x-const' might be canonicalized to 'x+(-const)', so we check both
    // CMN and CMP for subtraction expressions to make the pattern robust.
    func CmpToZero_ex1(a int64, e int32) int {
    	// arm64:`CMN`,-`ADD`,`(BMI|BPL)`
    	if a+3 < 0 {
    		return 1
    	}
    
    	// arm64:`CMN`,-`ADD`,`BEQ`,`(BMI|BPL)`
    	if a+5 <= 0 {
    		return 1
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top