github.com/bir3/gocompiler@v0.3.205/src/cmd/internal/obj/arm64/asm_arm64_test.s (about) 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 // testvmovq() (r1, r2 uint64) 8 TEXT ·testvmovq(SB), NOSPLIT, $0-16 9 VMOVQ $0x7040201008040201, $0x3040201008040201, 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 // testmovk() uint64 17 TEXT ·testmovk(SB), NOSPLIT, $0-8 18 MOVD $0, R0 19 MOVK $(40000<<48), R0 20 MOVD R0, ret+0(FP) 21 RET