• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
        • Sdm-instruction-set-summary
        • Tlb
        • Running-linux
        • Introduction
        • Asmtest
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • X86isa-state
          • Syscalls
          • Cpuid
          • Linear-memory
          • Rflag-specifications
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
          • Instructions
          • Register-readers-and-writers
            • Zmms-reads-and-writes
              • Xmms-reads-and-writes
              • !zmmi-size
                • Wz64
                • Wz32
                • Wz128
                • Wz256
                • Vector-access-type-p
                • Rz512
                • Zmmi-size
                • Wz512
                • Rz64
                • Rz32
                • Rz256
                • Rz128
              • Gprs-reads-and-writes
              • Mmx-registers-reads-and-writes
              • Xmms-reads-and-writes
              • Rflags-reads-and-writes
              • Gpr-indices
              • Vex-vvvv-reg-index
              • Msr-reads-and-writes
              • Ctr-reads-and-writes
            • X86-modes
            • Segmentation
            • Other-non-deterministic-computations
            • Environment
            • Paging
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Zmms-reads-and-writes

    !zmmi-size

    Write val to low nbytes of a ZMM register

    Signature
    (!zmmi-size nbytes index val x86 &key (regtype '*zmm-access*)) 
      → 
    x86
    Arguments
    regtype — Guard (vector-access-type-p regtype).
    Returns
    x86 — Type (x86p x86), given (x86p x86).

    Upper bits: For XMM registers, upper 384 bits are preserved if regtype is *xmm-access*; for *vex-xmm-access*, these bits are zeroed out. For *ymm-access*, upper 256 bits are zeroed out. For *zmm-access*, no upper bits are zeroed out.

    Definitions and Theorems

    Function: !zmmi-size$inline

    (defun !zmmi-size$inline (nbytes index val x86 regtype)
     (declare (xargs :stobjs (x86)))
     (declare (type (unsigned-byte 7) nbytes)
              (type (unsigned-byte 5) index)
              (type integer val))
     (declare (xargs :guard (vector-access-type-p regtype)))
     (declare (xargs :guard (and (member nbytes '(4 8 16 32 64))
                                 (unsigned-byte-p (ash nbytes 3) val))))
     (case nbytes
       (4 (wz32 index val x86 :regtype regtype))
       (8 (wz64 index val x86 :regtype regtype))
       (16 (wz128 index val x86 :regtype regtype))
       (32 (wz256 index val x86 :regtype regtype))
       (64 (wz512 index val x86))
       (otherwise x86)))

    Theorem: x86p-of-!zmmi-size

    (defthm x86p-of-!zmmi-size
      (implies
           (x86p x86)
           (b* ((x86 (!zmmi-size$inline nbytes index val x86 regtype)))
             (x86p x86)))
      :rule-classes :rewrite)