• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Riscv
          • Specification
            • Semantics
            • Features
            • Instructions
              • Instr
                • Instrp
                • Instr-fix
                • Instr-case
                • Instr-store
                • Instr-op-imms64
                • Instr-op-imms32
                • Instr-op-imms-32
                • Instr-op-imm-32
                • Instr-op-imm
                • Instr-op-32
                • Instr-op
                • Instr-load
                • Instr-branch
                • Instr-equiv
                • Instr-jalr
                • Instr-lui
                • Instr-jal
                  • Make-instr-jal
                    • Instr-jal->rd
                    • Instr-jal->imm
                    • Change-instr-jal
                  • Instr-auipc
                  • Instr-kind
                • Op-funct
                • Op-32-funct
                • Op-imm-funct
                • Load-funct
                • Instr-validp
                • Branch-funct
                • Op-imms-funct
                • Store-funct
                • Op-imms-32-funct
                • Instr-option
                • Op-imm-32-funct
              • Encoding
              • States
              • Reads-over-writes
              • Semantics-equivalences
              • Decoding
              • Execution
            • Executable
            • Specialized
            • Optimized
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Instr-jal

    Make-instr-jal

    Basic constructor macro for instr-jal structures.

    Syntax
    (make-instr-jal [:rd <rd>] 
                    [:imm <imm>]) 
    

    This is the usual way to construct instr-jal structures. It simply conses together a structure with the specified fields.

    This macro generates a new instr-jal structure from scratch. See also change-instr-jal, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-instr-jal

    (defmacro make-instr-jal (&rest args)
      (std::make-aggregate 'instr-jal
                           args '((:rd) (:imm))
                           'make-instr-jal
                           nil))

    Function: instr-jal

    (defun instr-jal (rd imm)
      (declare (xargs :guard (and (ubyte5p rd) (ubyte20p imm))))
      (declare (xargs :guard t))
      (let ((__function__ 'instr-jal))
        (declare (ignorable __function__))
        (b* ((rd (mbe :logic (ubyte5-fix rd) :exec rd))
             (imm (mbe :logic (ubyte20-fix imm)
                       :exec imm)))
          (cons :jal (list rd imm)))))