• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
        • Introduction
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • Syscalls
          • Cpuid
          • X86isa-state
          • Linear-memory
          • Rflag-specifications
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
          • Instructions
          • X86-modes
          • Segmentation
          • Register-readers-and-writers
            • Zmms-reads-and-writes
            • Gprs-reads-and-writes
            • Mmx-registers-reads-and-writes
              • Mmx-instruction-updates
                • Mmx
                • !mmx
              • Xmms-reads-and-writes
              • Rflags-reads-and-writes
              • Gpr-indices
            • Other-non-deterministic-computations
            • Environment
            • Paging
          • Implemented-opcodes
          • Proof-utilities
          • To-do
          • Concrete-simulation-examples
          • Model-validation
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Mmx-registers-reads-and-writes

    Mmx-instruction-updates

    We set the FPU tag and TOS field to 00B (valid) and 000B respectively. This function accounts for the effects of all MMX instructions except EMMS.

    Signature
    (mmx-instruction-updates x86) → x86

    Definitions and Theorems

    Function: mmx-instruction-updates$inline

    (defun mmx-instruction-updates$inline (x86)
      (declare (xargs :stobjs (x86)))
      (declare (xargs :guard t))
      (b* ((x86 (!fp-tag 0 x86))
           (fp-status (fp-status x86))
           (x86 (!fp-status (!fp-statusbits->top 0 fp-status)
                            x86)))
        x86))

    Theorem: x86p-mmx-instruction-updates

    (defthm x86p-mmx-instruction-updates
      (implies (x86p x86)
               (x86p (mmx-instruction-updates x86))))