generator

package
v0.0.0-...-20200cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Insn

type Insn struct {
	Name         string     `toml:"name"`
	Format       insnFormat `toml:"format"`
	NoTestfloat3 bool       `toml:"notestfloat3"`
	Vxrm         bool       `toml:"vxrm"`
	Vxsat        bool       `toml:"vxsat"`
	Tests        tests      `toml:"tests"`
	Option       Option     `toml:"-"`
	EGW          int        `toml:"-"`
	TestData     *TestData
}

func ReadInsnFromToml

func ReadInsnFromToml(contents []byte, option Option) (*Insn, error)

func (*Insn) Generate

func (i *Insn) Generate(splitPerLines int) []string

type LMUL

type LMUL float32

func (LMUL) String

func (l LMUL) String() string

type Option

type Option struct {
	VLEN    VLEN
	XLEN    XLEN
	Repeat  int
	Float16 bool
}

type SEW

type SEW int

func (SEW) String

func (s SEW) String() string

type TestData

type TestData struct {
	CurrentOffset uint64

	Raws [][]byte
}

func (*TestData) Append

func (t *TestData) Append(raw []byte) uint64

func (*TestData) String

func (t *TestData) String() string

type VLEN

type VLEN int

func (VLEN) Valid

func (v VLEN) Valid() bool

type VXRM

type VXRM int

func (VXRM) String

func (v VXRM) String() string

type VXSAT

type VXSAT bool

type XLEN

type XLEN int

func (XLEN) Valid

func (x XLEN) Valid(v VLEN) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL