1// Copyright 2019 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//go:build gc
6// +build gc
7
8#include "textflag.h"
9
10// func getisar0() uint64
11TEXT ·getisar0(SB),NOSPLIT,$0-8
12	// get Instruction Set Attributes 0 into x0
13	// mrs x0, ID_AA64ISAR0_EL1 = d5380600
14	WORD	$0xd5380600
15	MOVD	R0, ret+0(FP)
16	RET
17
18// func getisar1() uint64
19TEXT ·getisar1(SB),NOSPLIT,$0-8
20	// get Instruction Set Attributes 1 into x0
21	// mrs x0, ID_AA64ISAR1_EL1 = d5380620
22	WORD	$0xd5380620
23	MOVD	R0, ret+0(FP)
24	RET
25
26// func getpfr0() uint64
27TEXT ·getpfr0(SB),NOSPLIT,$0-8
28	// get Processor Feature Register 0 into x0
29	// mrs x0, ID_AA64PFR0_EL1 = d5380400
30	WORD	$0xd5380400
31	MOVD	R0, ret+0(FP)
32	RET
33