github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/asm/internal/arch/riscv64.go (about)

     1  // Copyright 2020 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  // This file encapsulates some of the odd characteristics of the RISCV64
     6  // instruction set, to minimize its interaction with the core of the
     7  // assembler.
     8  
     9  package arch
    10  
    11  import (
    12  	"github.com/shogo82148/std/cmd/internal/obj"
    13  )
    14  
    15  // IsRISCV64AMO reports whether the op (as defined by a riscv.A*
    16  // constant) is one of the AMO instructions that requires special
    17  // handling.
    18  func IsRISCV64AMO(op obj.As) bool