Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for compMem1 (1.1 sec)

  1. test/codegen/memops.go

    // license that can be found in the LICENSE file.
    
    package codegen
    
    var x [2]bool
    var x8 [2]uint8
    var x16 [2]uint16
    var x32 [2]uint32
    var x64 [2]uint64
    
    func compMem1() int {
    	// amd64:`CMPB\tcommand-line-arguments.x\+1\(SB\), [$]0`
    	if x[1] {
    		return 1
    	}
    	// amd64:`CMPB\tcommand-line-arguments.x8\+1\(SB\), [$]7`
    	if x8[1] == 7 {
    		return 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  2. test/codegen/comparisons.go

    var r bool
    
    func CmpFold(x uint32) {
    	// amd64:`SETHI\t.*\(SB\)`
    	r = x > 4
    }
    
    // Test that direct comparisons with memory are generated when
    // possible
    
    func CmpMem1(p int, q *int) bool {
    	// amd64:`CMPQ\t\(.*\), [A-Z]`
    	return p < *q
    }
    
    func CmpMem2(p *int, q int) bool {
    	// amd64:`CMPQ\t\(.*\), [A-Z]`
    	return *p < q
    }
    
    func CmpMem3(p *int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/builtins0.go

    func close2() {
    	f1 := func() (ch chan int) { return }
    	f2 := func() (ch chan int, x int) { return }
    	close(f0 /* ERROR "used as value" */ ())
    	close(f1())
    	close(f2()) // ERROR "too many arguments"
    }
    
    func complex1() {
    	var i32 int32
    	var f32 float32
    	var f64 float64
    	var c64 complex64
    	var c128 complex128
    	_ = complex() // ERROR "not enough arguments"
    	_ = complex(1) // ERROR "not enough arguments"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top