Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for orDemorgans (0.49 sec)

  1. test/codegen/logic.go

    }
    
    // Verify (OR x (NOT y)) rewrites to (ORN x y) where supported
    func ornot(x, y int) int {
    	// ppc64x:"ORN"
    	z := x | ^y
    	return z
    }
    
    // Verify that (OR (NOT x) (NOT y)) rewrites to (NOT (AND x y))
    func orDemorgans(x, y int) int {
    	// amd64:"AND",-"OR"
    	z := ^x | ^y
    	return z
    }
    
    // Verify that (AND (NOT x) (NOT y)) rewrites to (NOT (OR x y))
    func andDemorgans(x, y int) int {
    	// amd64:"OR",-"AND"
    	z := ^x & ^y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 16:32:25 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top