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

     1  // Copyright 2015 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
     6  // 64-bit PowerPC (PPC64) instruction set, to minimize its interaction
     7  // with the core of the assembler.
     8  
     9  package arch
    10  
    11  import (
    12  	"github.com/shogo82148/std/cmd/internal/obj"
    13  )
    14  
    15  // IsPPC64CMP reports whether the op (as defined by an ppc64.A* constant) is
    16  // one of the CMP instructions that require special handling.
    17  func IsPPC64CMP(op obj.As) bool
    18  
    19  // IsPPC64NEG reports whether the op (as defined by an ppc64.A* constant) is
    20  // one of the NEG-like instructions that require special handling.
    21  func IsPPC64NEG(op obj.As) bool