Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for movesmall4 (0.09 sec)

  1. test/codegen/copy.go

    package codegen
    
    import "runtime"
    
    // Check small copies are replaced with moves.
    
    func movesmall4() {
    	x := [...]byte{1, 2, 3, 4}
    	// 386:-".*memmove"
    	// amd64:-".*memmove"
    	// arm:-".*memmove"
    	// arm64:-".*memmove"
    	// ppc64x:-".*memmove"
    	copy(x[1:], x[:])
    }
    
    func movesmall7() {
    	x := [...]byte{1, 2, 3, 4, 5, 6, 7}
    	// 386:-".*memmove"
    	// amd64:-".*memmove"
    	// arm64:-".*memmove"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 14:09:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. test/codegen/README

      // amd64:"ADDQ\t\\$3"
      // amd64:`ADDQ\t\$3`
    
    and they'll match this assembly line:
    
      ADDQ	$3
    
    Negative matches can be specified using a - before the quoted regexp.
    For example:
    
      func MoveSmall() {
      	   x := [...]byte{1, 2, 3, 4, 5, 6, 7}
      	   copy(x[1:], x[:]) // arm64:-".*memmove"
      }
    
    verifies that NO memmove call is present in the assembly generated for
    the copy() line.
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top