• 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

    Wz128

    Write val to low 128 bits of a ZMM register

    Signature
    (wz128 reg val x86 &key (regtype '*zmm-access*)) → x86
    Arguments
    regtype — Guard (vector-access-type-p regtype).

    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: wz128$inline

    (defun wz128$inline (reg val x86 regtype)
      (declare (xargs :stobjs (x86)))
      (declare (type (unsigned-byte 5) reg)
               (type (unsigned-byte 128) val))
      (declare (xargs :guard (vector-access-type-p regtype)))
      (b* ((data (the (unsigned-byte 512)
                      (zmmi reg x86)))
           (regtype (the (unsigned-byte 3) regtype))
           (data (case regtype
                   (2 (loghead 128 data))
                   (3 (loghead 256 data))
                   (otherwise data)))
           (val (the (unsigned-byte 128) (n128 val))))
        (!zmmi reg
               (part-install val data
                             :low 0
                             :width 128)
               x86)))

    Theorem: x86p-wz128

    (defthm x86p-wz128
      (implies (x86p x86)
               (x86p (wz128 reg val x86 :regtype access))))