Text file src/cmd/internal/obj/arm64/asm_arm64_test.s

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  #include "textflag.h"
     6  
     7  // testvmovs() (r1, r2 uint64)
     8  TEXT ·testvmovs(SB), NOSPLIT, $0-16
     9  	VMOVS   $0x80402010, V1
    10  	VMOV    V1.D[0], R0
    11  	VMOV    V1.D[1], R1
    12  	MOVD    R0, r1+0(FP)
    13  	MOVD    R1, r2+8(FP)
    14  	RET
    15  
    16  // testvmovd() (r1, r2 uint64)
    17  TEXT ·testvmovd(SB), NOSPLIT, $0-16
    18  	VMOVD   $0x7040201008040201, V1
    19  	VMOV    V1.D[0], R0
    20  	VMOV    V1.D[1], R1
    21  	MOVD    R0, r1+0(FP)
    22  	MOVD    R1, r2+8(FP)
    23  	RET
    24  
    25  // testvmovq() (r1, r2 uint64)
    26  TEXT ·testvmovq(SB), NOSPLIT, $0-16
    27  	VMOVQ   $0x7040201008040201, $0x3040201008040201, V1
    28  	VMOV    V1.D[0], R0
    29  	VMOV    V1.D[1], R1
    30  	MOVD    R0, r1+0(FP)
    31  	MOVD    R1, r2+8(FP)
    32  	RET
    33  
    34  // testmovk() uint64
    35  TEXT ·testmovk(SB), NOSPLIT, $0-8
    36  	MOVD	$0, R0
    37  	MOVK	$(40000<<48), R0
    38  	MOVD	R0, ret+0(FP)
    39  	RET
    40  

View as plain text