arch: golang.org/x/arch/ppc64/ppc64asm Index | Files

package ppc64asm

import "golang.org/x/arch/ppc64/ppc64asm"

Package ppc64asm implements decoding of 64-bit PowerPC machine code.

Index

Package Files

decode.go doc.go field.go gnu.go inst.go plan9.go tables.go

func GNUSyntax Uses

func GNUSyntax(inst Inst) string

GNUSyntax returns the GNU assembler syntax for the instruction, as defined by GNU binutils. This form typically matches the syntax defined in the Power ISA Reference Manual.

func GoSyntax Uses

func GoSyntax(inst Inst, pc uint64, symname func(uint64) (string, uint64)) string

GoSyntax returns the Go assembler syntax for the instruction. The pc is the program counter of the first instruction, used for expanding PC-relative addresses into absolute ones. The symname function queries the symbol table for the program being disassembled. It returns the name and base address of the symbol containing the target, if any; otherwise it returns "", 0.

type Arg Uses

type Arg interface {
    IsArg()
    String() string
}

An Arg is a single instruction argument, one of these types: Reg, CondReg, SpReg, Imm, PCRel, Label, or Offset.

type ArgType Uses

type ArgType int8
const (
    TypeUnknown      ArgType = iota
    TypePCRel                // PC-relative address
    TypeLabel                // absolute address
    TypeReg                  // integer register
    TypeCondRegBit           // conditional register bit (0-31)
    TypeCondRegField         // conditional register field (0-7)
    TypeFPReg                // floating point register
    TypeVecReg               // vector register
    TypeVecSReg              // VSX register
    TypeSpReg                // special register (depends on Op)
    TypeImmSigned            // signed immediate
    TypeImmUnsigned          // unsigned immediate/flag/mask, this is the catch-all type
    TypeOffset               // signed offset in load/store
    TypeLast                 // must be the last one
)

func (ArgType) GoString Uses

func (t ArgType) GoString() string

func (ArgType) String Uses

func (t ArgType) String() string

type Args Uses

type Args [5]Arg

An Args holds the instruction arguments. If an instruction has fewer than 4 arguments, the final elements in the array are nil.

type BitField Uses

type BitField struct {
    Offs uint8 // the offset of the left-most bit.
    Bits uint8 // length in bits.
}

A BitField is a bit-field in a 32-bit word. Bits are counted from 0 from the MSB to 31 as the LSB.

func (BitField) Parse Uses

func (b BitField) Parse(i uint32) uint32

Parse extracts the bitfield b from i, and return it as an unsigned integer. Parse will panic if b is invalid.

func (BitField) ParseSigned Uses

func (b BitField) ParseSigned(i uint32) int32

ParseSigned extracts the bitfield b from i, and return it as a signed integer. ParseSigned will panic if b is invalid.

func (BitField) String Uses

func (b BitField) String() string

type BitFields Uses

type BitFields []BitField

BitFields is a series of BitFields representing a single number.

func (*BitFields) Append Uses

func (bs *BitFields) Append(b BitField)

func (BitFields) Parse Uses

func (bs BitFields) Parse(i uint32) uint32

Parse extracts the bitfields from i, concatenate them and return the result as an unsigned integer. Parse will panic if any bitfield in b is invalid.

func (BitFields) ParseSigned Uses

func (bs BitFields) ParseSigned(i uint32) int32

Parse extracts the bitfields from i, concatenate them and return the result as a signed integer. Parse will panic if any bitfield in b is invalid.

func (BitFields) String Uses

func (bs BitFields) String() string

type CondReg Uses

type CondReg int8

CondReg is a bit or field in the conditon register.

const (

    // Condition Regster bits
    Cond0LT CondReg
    Cond0GT
    Cond0EQ
    Cond0SO
    Cond1LT
    Cond1GT
    Cond1EQ
    Cond1SO
    Cond2LT
    Cond2GT
    Cond2EQ
    Cond2SO
    Cond3LT
    Cond3GT
    Cond3EQ
    Cond3SO
    Cond4LT
    Cond4GT
    Cond4EQ
    Cond4SO
    Cond5LT
    Cond5GT
    Cond5EQ
    Cond5SO
    Cond6LT
    Cond6GT
    Cond6EQ
    Cond6SO
    Cond7LT
    Cond7GT
    Cond7EQ
    Cond7SO
    // Condition Register Fields
    CR0
    CR1
    CR2
    CR3
    CR4
    CR5
    CR6
    CR7
)

func (CondReg) IsArg Uses

func (CondReg) IsArg()

func (CondReg) String Uses

func (c CondReg) String() string

type Imm Uses

type Imm int32

Imm represents an immediate number.

func (Imm) IsArg Uses

func (Imm) IsArg()

func (Imm) String Uses

func (i Imm) String() string

type Inst Uses

type Inst struct {
    Op   Op     // Opcode mnemonic
    Enc  uint32 // Raw encoding bits
    Len  int    // Length of encoding in bytes.
    Args Args   // Instruction arguments, in Power ISA manual order.
}

func Decode Uses

func Decode(src []byte, ord binary.ByteOrder) (inst Inst, err error)

Decode decodes the leading bytes in src as a single instruction using byte order ord.

func (Inst) String Uses

func (i Inst) String() string

type Label Uses

type Label uint32

A Label is a code (text) address, used only in absolute branch instructions.

func (Label) IsArg Uses

func (Label) IsArg()

func (Label) String Uses

func (l Label) String() string

type Offset Uses

type Offset int32

Offset represents a memory offset immediate.

func (Offset) IsArg Uses

func (Offset) IsArg()

func (Offset) String Uses

func (o Offset) String() string

type Op Uses

type Op uint16

An Op is an instruction operation.

const (
    CNTLZW Op
    CNTLZW_
    B
    BA
    BL
    BLA
    BC
    BCA
    BCL
    BCLA
    BCLR
    BCLRL
    BCCTR
    BCCTRL
    BCTAR
    BCTARL
    CRAND
    CROR
    CRNAND
    CRXOR
    CRNOR
    CRANDC
    MCRF
    CREQV
    CRORC
    SC
    CLRBHRB
    MFBHRBE
    LBZ
    LBZU
    LBZX
    LBZUX
    LHZ
    LHZU
    LHZX
    LHZUX
    LHA
    LHAU
    LHAX
    LHAUX
    LWZ
    LWZU
    LWZX
    LWZUX
    LWA
    LWAX
    LWAUX
    LD
    LDU
    LDX
    LDUX
    STB
    STBU
    STBX
    STBUX
    STH
    STHU
    STHX
    STHUX
    STW
    STWU
    STWX
    STWUX
    STD
    STDU
    STDX
    STDUX
    LQ
    STQ
    LHBRX
    LWBRX
    STHBRX
    STWBRX
    LDBRX
    STDBRX
    LMW
    STMW
    LSWI
    LSWX
    STSWI
    STSWX
    LI
    ADDI
    LIS
    ADDIS
    ADD
    ADD_
    ADDO
    ADDO_
    ADDIC
    SUBF
    SUBF_
    SUBFO
    SUBFO_
    ADDIC_
    SUBFIC
    ADDC
    ADDC_
    ADDCO
    ADDCO_
    SUBFC
    SUBFC_
    SUBFCO
    SUBFCO_
    ADDE
    ADDE_
    ADDEO
    ADDEO_
    ADDME
    ADDME_
    ADDMEO
    ADDMEO_
    SUBFE
    SUBFE_
    SUBFEO
    SUBFEO_
    SUBFME
    SUBFME_
    SUBFMEO
    SUBFMEO_
    ADDZE
    ADDZE_
    ADDZEO
    ADDZEO_
    SUBFZE
    SUBFZE_
    SUBFZEO
    SUBFZEO_
    NEG
    NEG_
    NEGO
    NEGO_
    MULLI
    MULLW
    MULLW_
    MULLWO
    MULLWO_
    MULHW
    MULHW_
    MULHWU
    MULHWU_
    DIVW
    DIVW_
    DIVWO
    DIVWO_
    DIVWU
    DIVWU_
    DIVWUO
    DIVWUO_
    DIVWE
    DIVWE_
    DIVWEO
    DIVWEO_
    DIVWEU
    DIVWEU_
    DIVWEUO
    DIVWEUO_
    MULLD
    MULLD_
    MULLDO
    MULLDO_
    MULHDU
    MULHDU_
    MULHD
    MULHD_
    DIVD
    DIVD_
    DIVDO
    DIVDO_
    DIVDU
    DIVDU_
    DIVDUO
    DIVDUO_
    DIVDE
    DIVDE_
    DIVDEO
    DIVDEO_
    DIVDEU
    DIVDEU_
    DIVDEUO
    DIVDEUO_
    CMPWI
    CMPDI
    CMPW
    CMPD
    CMPLWI
    CMPLDI
    CMPLW
    CMPLD
    TWI
    TW
    TDI
    ISEL
    TD
    ANDI_
    ANDIS_
    ORI
    ORIS
    XORI
    XORIS
    AND
    AND_
    XOR
    XOR_
    NAND
    NAND_
    OR
    OR_
    NOR
    NOR_
    ANDC
    ANDC_
    EXTSB
    EXTSB_
    EQV
    EQV_
    ORC
    ORC_
    EXTSH
    EXTSH_
    CMPB
    POPCNTB
    POPCNTW
    PRTYD
    PRTYW
    EXTSW
    EXTSW_
    CNTLZD
    CNTLZD_
    POPCNTD
    BPERMD
    RLWINM
    RLWINM_
    RLWNM
    RLWNM_
    RLWIMI
    RLWIMI_
    RLDICL
    RLDICL_
    RLDICR
    RLDICR_
    RLDIC
    RLDIC_
    RLDCL
    RLDCL_
    RLDCR
    RLDCR_
    RLDIMI
    RLDIMI_
    SLW
    SLW_
    SRW
    SRW_
    SRAWI
    SRAWI_
    SRAW
    SRAW_
    SLD
    SLD_
    SRD
    SRD_
    SRADI
    SRADI_
    SRAD
    SRAD_
    CDTBCD
    CBCDTD
    ADDG6S
    MTSPR
    MFSPR
    MTCRF
    MFCR
    MTSLE
    MFVSRD
    MFVSRWZ
    MTVSRD
    MTVSRWA
    MTVSRWZ
    MTOCRF
    MFOCRF
    MCRXR
    MTDCRUX
    MFDCRUX
    LFS
    LFSU
    LFSX
    LFSUX
    LFD
    LFDU
    LFDX
    LFDUX
    LFIWAX
    LFIWZX
    STFS
    STFSU
    STFSX
    STFSUX
    STFD
    STFDU
    STFDX
    STFDUX
    STFIWX
    LFDP
    LFDPX
    STFDP
    STFDPX
    FMR
    FMR_
    FABS
    FABS_
    FNABS
    FNABS_
    FNEG
    FNEG_
    FCPSGN
    FCPSGN_
    FMRGEW
    FMRGOW
    FADD
    FADD_
    FADDS
    FADDS_
    FSUB
    FSUB_
    FSUBS
    FSUBS_
    FMUL
    FMUL_
    FMULS
    FMULS_
    FDIV
    FDIV_
    FDIVS
    FDIVS_
    FSQRT
    FSQRT_
    FSQRTS
    FSQRTS_
    FRE
    FRE_
    FRES
    FRES_
    FRSQRTE
    FRSQRTE_
    FRSQRTES
    FRSQRTES_
    FTDIV
    FTSQRT
    FMADD
    FMADD_
    FMADDS
    FMADDS_
    FMSUB
    FMSUB_
    FMSUBS
    FMSUBS_
    FNMADD
    FNMADD_
    FNMADDS
    FNMADDS_
    FNMSUB
    FNMSUB_
    FNMSUBS
    FNMSUBS_
    FRSP
    FRSP_
    FCTID
    FCTID_
    FCTIDZ
    FCTIDZ_
    FCTIDU
    FCTIDU_
    FCTIDUZ
    FCTIDUZ_
    FCTIW
    FCTIW_
    FCTIWZ
    FCTIWZ_
    FCTIWU
    FCTIWU_
    FCTIWUZ
    FCTIWUZ_
    FCFID
    FCFID_
    FCFIDU
    FCFIDU_
    FCFIDS
    FCFIDS_
    FCFIDUS
    FCFIDUS_
    FRIN
    FRIN_
    FRIZ
    FRIZ_
    FRIP
    FRIP_
    FRIM
    FRIM_
    FCMPU
    FCMPO
    FSEL
    FSEL_
    MFFS
    MFFS_
    MCRFS
    MTFSFI
    MTFSFI_
    MTFSF
    MTFSF_
    MTFSB0
    MTFSB0_
    MTFSB1
    MTFSB1_
    LVEBX
    LVEHX
    LVEWX
    LVX
    LVXL
    STVEBX
    STVEHX
    STVEWX
    STVX
    STVXL
    LVSL
    LVSR
    VPKPX
    VPKSDSS
    VPKSDUS
    VPKSHSS
    VPKSHUS
    VPKSWSS
    VPKSWUS
    VPKUDUM
    VPKUDUS
    VPKUHUM
    VPKUHUS
    VPKUWUM
    VPKUWUS
    VUPKHPX
    VUPKLPX
    VUPKHSB
    VUPKHSH
    VUPKHSW
    VUPKLSB
    VUPKLSH
    VUPKLSW
    VMRGHB
    VMRGHH
    VMRGLB
    VMRGLH
    VMRGHW
    VMRGLW
    VMRGEW
    VMRGOW
    VSPLTB
    VSPLTH
    VSPLTW
    VSPLTISB
    VSPLTISH
    VSPLTISW
    VPERM
    VSEL
    VSL
    VSLDOI
    VSLO
    VSR
    VSRO
    VADDCUW
    VADDSBS
    VADDSHS
    VADDSWS
    VADDUBM
    VADDUDM
    VADDUHM
    VADDUWM
    VADDUBS
    VADDUHS
    VADDUWS
    VADDUQM
    VADDEUQM
    VADDCUQ
    VADDECUQ
    VSUBCUW
    VSUBSBS
    VSUBSHS
    VSUBSWS
    VSUBUBM
    VSUBUDM
    VSUBUHM
    VSUBUWM
    VSUBUBS
    VSUBUHS
    VSUBUWS
    VSUBUQM
    VSUBEUQM
    VSUBCUQ
    VSUBECUQ
    VMULESB
    VMULEUB
    VMULOSB
    VMULOUB
    VMULESH
    VMULEUH
    VMULOSH
    VMULOUH
    VMULESW
    VMULEUW
    VMULOSW
    VMULOUW
    VMULUWM
    VMHADDSHS
    VMHRADDSHS
    VMLADDUHM
    VMSUMUBM
    VMSUMMBM
    VMSUMSHM
    VMSUMSHS
    VMSUMUHM
    VMSUMUHS
    VSUMSWS
    VSUM2SWS
    VSUM4SBS
    VSUM4SHS
    VSUM4UBS
    VAVGSB
    VAVGSH
    VAVGSW
    VAVGUB
    VAVGUW
    VAVGUH
    VMAXSB
    VMAXSD
    VMAXUB
    VMAXUD
    VMAXSH
    VMAXSW
    VMAXUH
    VMAXUW
    VMINSB
    VMINSD
    VMINUB
    VMINUD
    VMINSH
    VMINSW
    VMINUH
    VMINUW
    VCMPEQUB
    VCMPEQUB_
    VCMPEQUH
    VCMPEQUH_
    VCMPEQUW
    VCMPEQUW_
    VCMPEQUD
    VCMPEQUD_
    VCMPGTSB
    VCMPGTSB_
    VCMPGTSD
    VCMPGTSD_
    VCMPGTSH
    VCMPGTSH_
    VCMPGTSW
    VCMPGTSW_
    VCMPGTUB
    VCMPGTUB_
    VCMPGTUD
    VCMPGTUD_
    VCMPGTUH
    VCMPGTUH_
    VCMPGTUW
    VCMPGTUW_
    VAND
    VANDC
    VEQV
    VNAND
    VORC
    VNOR
    VOR
    VXOR
    VRLB
    VRLH
    VRLW
    VRLD
    VSLB
    VSLH
    VSLW
    VSLD
    VSRB
    VSRH
    VSRW
    VSRD
    VSRAB
    VSRAH
    VSRAW
    VSRAD
    VADDFP
    VSUBFP
    VMADDFP
    VNMSUBFP
    VMAXFP
    VMINFP
    VCTSXS
    VCTUXS
    VCFSX
    VCFUX
    VRFIM
    VRFIN
    VRFIP
    VRFIZ
    VCMPBFP
    VCMPBFP_
    VCMPEQFP
    VCMPEQFP_
    VCMPGEFP
    VCMPGEFP_
    VCMPGTFP
    VCMPGTFP_
    VEXPTEFP
    VLOGEFP
    VREFP
    VRSQRTEFP
    VCIPHER
    VCIPHERLAST
    VNCIPHER
    VNCIPHERLAST
    VSBOX
    VSHASIGMAD
    VSHASIGMAW
    VPMSUMB
    VPMSUMD
    VPMSUMH
    VPMSUMW
    VPERMXOR
    VGBBD
    VCLZB
    VCLZH
    VCLZW
    VCLZD
    VPOPCNTB
    VPOPCNTD
    VPOPCNTH
    VPOPCNTW
    VBPERMQ
    BCDADD_
    BCDSUB_
    MTVSCR
    MFVSCR
    DADD
    DADD_
    DSUB
    DSUB_
    DMUL
    DMUL_
    DDIV
    DDIV_
    DCMPU
    DCMPO
    DTSTDC
    DTSTDG
    DTSTEX
    DTSTSF
    DQUAI
    DQUAI_
    DQUA
    DQUA_
    DRRND
    DRRND_
    DRINTX
    DRINTX_
    DRINTN
    DRINTN_
    DCTDP
    DCTDP_
    DCTQPQ
    DCTQPQ_
    DRSP
    DRSP_
    DRDPQ
    DRDPQ_
    DCFFIX
    DCFFIX_
    DCFFIXQ
    DCFFIXQ_
    DCTFIX
    DCTFIX_
    DDEDPD
    DDEDPD_
    DENBCD
    DENBCD_
    DXEX
    DXEX_
    DIEX
    DIEX_
    DSCLI
    DSCLI_
    DSCRI
    DSCRI_
    LXSDX
    LXSIWAX
    LXSIWZX
    LXSSPX
    LXVD2X
    LXVDSX
    LXVW4X
    STXSDX
    STXSIWX
    STXSSPX
    STXVD2X
    STXVW4X
    XSABSDP
    XSADDDP
    XSADDSP
    XSCMPODP
    XSCMPUDP
    XSCPSGNDP
    XSCVDPSP
    XSCVDPSPN
    XSCVDPSXDS
    XSCVDPSXWS
    XSCVDPUXDS
    XSCVDPUXWS
    XSCVSPDP
    XSCVSPDPN
    XSCVSXDDP
    XSCVSXDSP
    XSCVUXDDP
    XSCVUXDSP
    XSDIVDP
    XSDIVSP
    XSMADDADP
    XSMADDASP
    XSMAXDP
    XSMINDP
    XSMSUBADP
    XSMSUBASP
    XSMULDP
    XSMULSP
    XSNABSDP
    XSNEGDP
    XSNMADDADP
    XSNMADDASP
    XSNMSUBADP
    XSNMSUBASP
    XSRDPI
    XSRDPIC
    XSRDPIM
    XSRDPIP
    XSRDPIZ
    XSREDP
    XSRESP
    XSRSP
    XSRSQRTEDP
    XSRSQRTESP
    XSSQRTDP
    XSSQRTSP
    XSSUBDP
    XSSUBSP
    XSTDIVDP
    XSTSQRTDP
    XVABSDP
    XVABSSP
    XVADDDP
    XVADDSP
    XVCMPEQDP
    XVCMPEQDP_
    XVCMPEQSP
    XVCMPEQSP_
    XVCMPGEDP
    XVCMPGEDP_
    XVCMPGESP
    XVCMPGESP_
    XVCMPGTDP
    XVCMPGTDP_
    XVCMPGTSP
    XVCMPGTSP_
    XVCPSGNDP
    XVCPSGNSP
    XVCVDPSP
    XVCVDPSXDS
    XVCVDPSXWS
    XVCVDPUXDS
    XVCVDPUXWS
    XVCVSPDP
    XVCVSPSXDS
    XVCVSPSXWS
    XVCVSPUXDS
    XVCVSPUXWS
    XVCVSXDDP
    XVCVSXDSP
    XVCVSXWDP
    XVCVSXWSP
    XVCVUXDDP
    XVCVUXDSP
    XVCVUXWDP
    XVCVUXWSP
    XVDIVDP
    XVDIVSP
    XVMADDADP
    XVMADDASP
    XVMAXDP
    XVMAXSP
    XVMINDP
    XVMINSP
    XVMSUBADP
    XVMSUBASP
    XVMULDP
    XVMULSP
    XVNABSDP
    XVNABSSP
    XVNEGDP
    XVNEGSP
    XVNMADDADP
    XVNMADDASP
    XVNMSUBADP
    XVNMSUBASP
    XVRDPI
    XVRDPIC
    XVRDPIM
    XVRDPIP
    XVRDPIZ
    XVREDP
    XVRESP
    XVRSPI
    XVRSPIC
    XVRSPIM
    XVRSPIP
    XVRSPIZ
    XVRSQRTEDP
    XVRSQRTESP
    XVSQRTDP
    XVSQRTSP
    XVSUBDP
    XVSUBSP
    XVTDIVDP
    XVTDIVSP
    XVTSQRTDP
    XVTSQRTSP
    XXLAND
    XXLANDC
    XXLEQV
    XXLNAND
    XXLORC
    XXLNOR
    XXLOR
    XXLXOR
    XXMRGHW
    XXMRGLW
    XXPERMDI
    XXSEL
    XXSLDWI
    XXSPLTW
    BRINC
    EVABS
    EVADDIW
    EVADDSMIAAW
    EVADDSSIAAW
    EVADDUMIAAW
    EVADDUSIAAW
    EVADDW
    EVAND
    EVCMPEQ
    EVANDC
    EVCMPGTS
    EVCMPGTU
    EVCMPLTU
    EVCMPLTS
    EVCNTLSW
    EVCNTLZW
    EVDIVWS
    EVDIVWU
    EVEQV
    EVEXTSB
    EVEXTSH
    EVLDD
    EVLDH
    EVLDDX
    EVLDHX
    EVLDW
    EVLHHESPLAT
    EVLDWX
    EVLHHESPLATX
    EVLHHOSSPLAT
    EVLHHOUSPLAT
    EVLHHOSSPLATX
    EVLHHOUSPLATX
    EVLWHE
    EVLWHOS
    EVLWHEX
    EVLWHOSX
    EVLWHOU
    EVLWHSPLAT
    EVLWHOUX
    EVLWHSPLATX
    EVLWWSPLAT
    EVMERGEHI
    EVLWWSPLATX
    EVMERGELO
    EVMERGEHILO
    EVMHEGSMFAA
    EVMERGELOHI
    EVMHEGSMFAN
    EVMHEGSMIAA
    EVMHEGUMIAA
    EVMHEGSMIAN
    EVMHEGUMIAN
    EVMHESMF
    EVMHESMFAAW
    EVMHESMFA
    EVMHESMFANW
    EVMHESMI
    EVMHESMIAAW
    EVMHESMIA
    EVMHESMIANW
    EVMHESSF
    EVMHESSFA
    EVMHESSFAAW
    EVMHESSFANW
    EVMHESSIAAW
    EVMHESSIANW
    EVMHEUMI
    EVMHEUMIAAW
    EVMHEUMIA
    EVMHEUMIANW
    EVMHEUSIAAW
    EVMHEUSIANW
    EVMHOGSMFAA
    EVMHOGSMIAA
    EVMHOGSMFAN
    EVMHOGSMIAN
    EVMHOGUMIAA
    EVMHOSMF
    EVMHOGUMIAN
    EVMHOSMFA
    EVMHOSMFAAW
    EVMHOSMI
    EVMHOSMFANW
    EVMHOSMIA
    EVMHOSMIAAW
    EVMHOSMIANW
    EVMHOSSF
    EVMHOSSFA
    EVMHOSSFAAW
    EVMHOSSFANW
    EVMHOSSIAAW
    EVMHOUMI
    EVMHOSSIANW
    EVMHOUMIA
    EVMHOUMIAAW
    EVMHOUSIAAW
    EVMHOUMIANW
    EVMHOUSIANW
    EVMRA
    EVMWHSMF
    EVMWHSMI
    EVMWHSMFA
    EVMWHSMIA
    EVMWHSSF
    EVMWHUMI
    EVMWHSSFA
    EVMWHUMIA
    EVMWLSMIAAW
    EVMWLSSIAAW
    EVMWLSMIANW
    EVMWLSSIANW
    EVMWLUMI
    EVMWLUMIAAW
    EVMWLUMIA
    EVMWLUMIANW
    EVMWLUSIAAW
    EVMWSMF
    EVMWLUSIANW
    EVMWSMFA
    EVMWSMFAA
    EVMWSMI
    EVMWSMIAA
    EVMWSMFAN
    EVMWSMIA
    EVMWSMIAN
    EVMWSSF
    EVMWSSFA
    EVMWSSFAA
    EVMWUMI
    EVMWSSFAN
    EVMWUMIA
    EVMWUMIAA
    EVNAND
    EVMWUMIAN
    EVNEG
    EVNOR
    EVORC
    EVOR
    EVRLW
    EVRLWI
    EVSEL
    EVRNDW
    EVSLW
    EVSPLATFI
    EVSRWIS
    EVSLWI
    EVSPLATI
    EVSRWIU
    EVSRWS
    EVSTDD
    EVSRWU
    EVSTDDX
    EVSTDH
    EVSTDW
    EVSTDHX
    EVSTDWX
    EVSTWHE
    EVSTWHO
    EVSTWWE
    EVSTWHEX
    EVSTWHOX
    EVSTWWEX
    EVSTWWO
    EVSUBFSMIAAW
    EVSTWWOX
    EVSUBFSSIAAW
    EVSUBFUMIAAW
    EVSUBFUSIAAW
    EVSUBFW
    EVSUBIFW
    EVXOR
    EVFSABS
    EVFSNABS
    EVFSNEG
    EVFSADD
    EVFSMUL
    EVFSSUB
    EVFSDIV
    EVFSCMPGT
    EVFSCMPLT
    EVFSCMPEQ
    EVFSTSTGT
    EVFSTSTLT
    EVFSTSTEQ
    EVFSCFSI
    EVFSCFSF
    EVFSCFUI
    EVFSCFUF
    EVFSCTSI
    EVFSCTUI
    EVFSCTSIZ
    EVFSCTUIZ
    EVFSCTSF
    EVFSCTUF
    EFSABS
    EFSNEG
    EFSNABS
    EFSADD
    EFSMUL
    EFSSUB
    EFSDIV
    EFSCMPGT
    EFSCMPLT
    EFSCMPEQ
    EFSTSTGT
    EFSTSTLT
    EFSTSTEQ
    EFSCFSI
    EFSCFSF
    EFSCTSI
    EFSCFUI
    EFSCFUF
    EFSCTUI
    EFSCTSIZ
    EFSCTSF
    EFSCTUIZ
    EFSCTUF
    EFDABS
    EFDNEG
    EFDNABS
    EFDADD
    EFDMUL
    EFDSUB
    EFDDIV
    EFDCMPGT
    EFDCMPEQ
    EFDCMPLT
    EFDTSTGT
    EFDTSTLT
    EFDCFSI
    EFDTSTEQ
    EFDCFUI
    EFDCFSID
    EFDCFSF
    EFDCFUF
    EFDCFUID
    EFDCTSI
    EFDCTUI
    EFDCTSIDZ
    EFDCTUIDZ
    EFDCTSIZ
    EFDCTSF
    EFDCTUF
    EFDCTUIZ
    EFDCFS
    EFSCFD
    DLMZB
    DLMZB_
    MACCHW
    MACCHW_
    MACCHWO
    MACCHWO_
    MACCHWS
    MACCHWS_
    MACCHWSO
    MACCHWSO_
    MACCHWU
    MACCHWU_
    MACCHWUO
    MACCHWUO_
    MACCHWSU
    MACCHWSU_
    MACCHWSUO
    MACCHWSUO_
    MACHHW
    MACHHW_
    MACHHWO
    MACHHWO_
    MACHHWS
    MACHHWS_
    MACHHWSO
    MACHHWSO_
    MACHHWU
    MACHHWU_
    MACHHWUO
    MACHHWUO_
    MACHHWSU
    MACHHWSU_
    MACHHWSUO
    MACHHWSUO_
    MACLHW
    MACLHW_
    MACLHWO
    MACLHWO_
    MACLHWS
    MACLHWS_
    MACLHWSO
    MACLHWSO_
    MACLHWU
    MACLHWU_
    MACLHWUO
    MACLHWUO_
    MULCHW
    MULCHW_
    MACLHWSU
    MACLHWSU_
    MACLHWSUO
    MACLHWSUO_
    MULCHWU
    MULCHWU_
    MULHHW
    MULHHW_
    MULLHW
    MULLHW_
    MULHHWU
    MULHHWU_
    MULLHWU
    MULLHWU_
    NMACCHW
    NMACCHW_
    NMACCHWO
    NMACCHWO_
    NMACCHWS
    NMACCHWS_
    NMACCHWSO
    NMACCHWSO_
    NMACHHW
    NMACHHW_
    NMACHHWO
    NMACHHWO_
    NMACHHWS
    NMACHHWS_
    NMACHHWSO
    NMACHHWSO_
    NMACLHW
    NMACLHW_
    NMACLHWO
    NMACLHWO_
    NMACLHWS
    NMACLHWS_
    NMACLHWSO
    NMACLHWSO_
    ICBI
    ICBT
    DCBA
    DCBT
    DCBTST
    DCBZ
    DCBST
    DCBF
    ISYNC
    LBARX
    LHARX
    LWARX
    STBCX_
    STHCX_
    STWCX_
    LDARX
    STDCX_
    LQARX
    STQCX_
    SYNC
    EIEIO
    MBAR
    WAIT
    TBEGIN_
    TEND_
    TABORT_
    TABORTWC_
    TABORTWCI_
    TABORTDC_
    TABORTDCI_
    TSR_
    TCHECK
    MFTB
    RFEBB
    LBDX
    LHDX
    LWDX
    LDDX
    LFDDX
    STBDX
    STHDX
    STWDX
    STDDX
    STFDDX
    DSN
    ECIWX
    ECOWX
    RFID
    HRFID
    DOZE
    NAP
    SLEEP
    RVWINKLE
    LBZCIX
    LWZCIX
    LHZCIX
    LDCIX
    STBCIX
    STWCIX
    STHCIX
    STDCIX
    TRECLAIM_
    TRECHKPT_
    MTMSR
    MTMSRD
    MFMSR
    SLBIE
    SLBIA
    SLBMTE
    SLBMFEV
    SLBMFEE
    SLBFEE_
    MTSR
    MTSRIN
    MFSR
    MFSRIN
    TLBIE
    TLBIEL
    TLBIA
    TLBSYNC
    MSGSND
    MSGCLR
    MSGSNDP
    MSGCLRP
    MTTMR
    RFI
    RFCI
    RFDI
    RFMCI
    RFGI
    EHPRIV
    MTDCR
    MTDCRX
    MFDCR
    MFDCRX
    WRTEE
    WRTEEI
    LBEPX
    LHEPX
    LWEPX
    LDEPX
    STBEPX
    STHEPX
    STWEPX
    STDEPX
    DCBSTEP
    DCBTEP
    DCBFEP
    DCBTSTEP
    ICBIEP
    DCBZEP
    LFDEPX
    STFDEPX
    EVLDDEPX
    EVSTDDEPX
    LVEPX
    LVEPXL
    STVEPX
    STVEPXL
    DCBI
    DCBLQ_
    ICBLQ_
    DCBTLS
    DCBTSTLS
    ICBTLS
    ICBLC
    DCBLC
    TLBIVAX
    TLBILX
    TLBSX
    TLBSRX_
    TLBRE
    TLBWE
    DNH
    DCI
    ICI
    DCREAD
    ICREAD
    MFPMR
    MTPMR
)

func (Op) String Uses

func (o Op) String() string

type PCRel Uses

type PCRel int32

PCRel is a PC-relative offset, used only in branch instructions.

func (PCRel) IsArg Uses

func (PCRel) IsArg()

func (PCRel) String Uses

func (r PCRel) String() string

type Reg Uses

type Reg uint16

A Reg is a single register. The zero value means R0, not the absence of a register. It also includes special registers.

const (
    R0  Reg
    R1
    R2
    R3
    R4
    R5
    R6
    R7
    R8
    R9
    R10
    R11
    R12
    R13
    R14
    R15
    R16
    R17
    R18
    R19
    R20
    R21
    R22
    R23
    R24
    R25
    R26
    R27
    R28
    R29
    R30
    R31
    F0
    F1
    F2
    F3
    F4
    F5
    F6
    F7
    F8
    F9
    F10
    F11
    F12
    F13
    F14
    F15
    F16
    F17
    F18
    F19
    F20
    F21
    F22
    F23
    F24
    F25
    F26
    F27
    F28
    F29
    F30
    F31
    V0  // VSX extension, F0 is V0[0:63].
    V1
    V2
    V3
    V4
    V5
    V6
    V7
    V8
    V9
    V10
    V11
    V12
    V13
    V14
    V15
    V16
    V17
    V18
    V19
    V20
    V21
    V22
    V23
    V24
    V25
    V26
    V27
    V28
    V29
    V30
    V31
    VS0
    VS1
    VS2
    VS3
    VS4
    VS5
    VS6
    VS7
    VS8
    VS9
    VS10
    VS11
    VS12
    VS13
    VS14
    VS15
    VS16
    VS17
    VS18
    VS19
    VS20
    VS21
    VS22
    VS23
    VS24
    VS25
    VS26
    VS27
    VS28
    VS29
    VS30
    VS31
    VS32
    VS33
    VS34
    VS35
    VS36
    VS37
    VS38
    VS39
    VS40
    VS41
    VS42
    VS43
    VS44
    VS45
    VS46
    VS47
    VS48
    VS49
    VS50
    VS51
    VS52
    VS53
    VS54
    VS55
    VS56
    VS57
    VS58
    VS59
    VS60
    VS61
    VS62
    VS63
)

func (Reg) IsArg Uses

func (Reg) IsArg()

func (Reg) String Uses

func (r Reg) String() string

type SpReg Uses

type SpReg uint16

SpReg is a special register, its meaning depends on Op.

const (
    SpRegZero SpReg = 0
)

func (SpReg) IsArg Uses

func (SpReg) IsArg()

func (SpReg) String Uses

func (s SpReg) String() string

Package ppc64asm imports 5 packages (graph) and is imported by 3 packages. Updated 2017-10-06. Refresh now. Tools for package owners.