Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFuncAlignAsmSources (0.16 sec)

  1. src/cmd/link/link_test.go

    var alignPcFnAddr uintptr
    
    func main() {
    	if alignPcFnAddr % 512 != 0 {
    		fmt.Printf("expected 512 bytes alignment, got %v\n", alignPcFnAddr)
    	} else {
    		fmt.Printf("PASS")
    	}
    }
    `
    
    var testFuncAlignAsmSources = map[string]string{
    	"arm64": `
    #include "textflag.h"
    
    TEXT	·alignPc(SB),NOSPLIT, $0-0
    	MOVD	$2, R0
    	PCALIGN	$512
    	MOVD	$3, R1
    	RET
    
    GLOBL	·alignPcFnAddr(SB),RODATA,$8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
Back to top