Tags: LLVMParty/xed
Tags
External Release v2025.06.08 This release aligns XED with Intel’s latest architecture specifications, including: - Intel® SDM Revision 087 - Intel® ISE Revision 057 - Intel® AVX10.2 Revision 5.0 Key ISA-related changes: - Dropped support for AVX10/256-specific architectural features, including YMM embedded rounding and AVX10 VL-specific CPUID enumerations - Updated CPUID sensitivity for various AVX10.2 instructions - Updated exception class handling for several AVX512 instructions --- - Modified arguments of the `xed_operand_print()` decoder API to correctly represent the destination EVEX operand (the old signature is deprecated and replaced) - Restructured XED examples for improved clarity, naming, and usability - Improved XedPy with more robust initialization and initial high-level Python encode APIs - Migrated internal types to use `stdint.h` exclusively - Added ENC2 support for REX2 prefix encoding with EGPR operands --- - Fixed many build exclusion options; deprecated several build flavors in favor of `--no-avx512` as the minimal build kit (Fixes intelxed#336) - Encoder: fixed AMX encoding for non-index SIBMEM operands - Added missing and removed incorrect non-temporal memory hints - Resolved Python 3.12 compatibility warnings (Closes intelxed#346) - Fixed AMD `INVLPGB` operand specification (Closes intelxed#345) - Corrected AMD `PREFETCH_EXCLUSIVE` mnemonic name (Fixes intelxed#215) - Updated instruction definitions for various AVX512 instructions - Applied various documentation improvements (Fixes intelxed#347) Co-authored-by: marjevan <marjevan@users.noreply.github.com>
External Release v2025.03.02 The release updates XED according to Intel's latest ISA publications, including AVX10.2 (Revision 3.0) and APX (Revision 6.0) architecture specifications. This release also introduces major enhancements to the decoder control APIs. ISA Updates - Added new APX instructions that promote the Diamond Rapids ISA. - Added support for AVX10.2 mnemonic renames. - Improved definitions for Intel SDM-recommended multi-byte NOPs (See intelxed#340). - Fixed ISA-SET discrepancy for FISTTP. - Corrected element types for VCVTQQ2PD and VGET{MANT,EXP}PBF16 instructions. - Refined TSX ISA definition for accurate disassembly representation. - Dropped compatibility mode SYSCALL per Intel's latest FRED specification. - Added missing `PROTECTED_MODE` and `NOP` XED attributes for existing ISA. ----- General - Python APIs: The `_py` binding APIs are now autogenerated during the build for an accurate representation of the chosen build kit. For more information, check the `xed\pyext\examples\README.md` file. - Python APIs example: Enhancements for the CFFI example and XedPy class. - Updated the XED build to support Clang versions 17 and 18. - Improved XED examples documentation and source-code comments. - Simplified the encode request for AVX10/256VL Embedded Rounding Control instructions by setting only the `ROUNDC` XED operand. ----- Fixes - Fixed UBSan errors (closes intelxed#339). - Fixed Sierra-Forest and other chip-excluded builds using the `--no-{chip}` build knobs (fixes intelxed#343). - Corrected SIB segment mapping for the R21 register (fixes intelxed#340). - Internal improvements and code cleanup (fixes intelxed#340). ----- Decoder - Added REAL-mode legality checks (`INVALID_MODE` error for illegal instructions). - Disassembler: Added support for Intel's recommended APX assembly syntax for NF (No Flags) and DFV (Default Flags Values) instructions. - Enhanced APIs for APX/DFV instructions to ensure simplicity and efficiency. See the API reference page and the `xed-ex1.c` example for more details. ----- API Improvements for Decoder ISA Control The XED decoder control APIs now fully support the `xed_chip_features_t` structure, offering greater flexibility and control compared to the `xed_chip_enum_t` concept, enabling users to customize feature sets with precision. - Improved the `xed_chip_features_t` APIs to provide fine-grained control over ISA initialization. This approach is now recommended over the raw `xed3_operand_set_*` APIs. - Introduced a new API, `xed_set_decoder_modes()`, which allows explicit initialization of decoder modes with improved performance through one-time decoder ISA initialization. Backward Compatibility - Backward compatibility for existing APIs is maintained. - Backward compatibility for decoder initialization of several ISA features has been deprecated. Previously default-on features like `P4` (PAUSE), `LZCNT` (replacing BSR), and `TZCNT` (replacing BSF) are now disabled by default unless explicitly enabled by users through the raw XED setter APIs or the chip/chip-features APIs. Decoder PREFETCH as NOP - New Capability - Based on decoder ISA initialization, the XED decoder now returns NOPs instead of PREFETCH instructions when PREFETCH is not supported by the chip/features. Previously, PREFETCH instructions were returned as illegal if they were unsupported by the XED chip Usage Example - For detailed usage guidance, refer to the XED `xed-ex4.c` example tool, which includes decoder initialization recommendations for dual-encoding ISA. Co-authored-by: marjevan <marjevan@users.noreply.github.com>
External Release v2024.11.04 The release updates XED according to Intel's latest ISA publications, as detailed in ISE054, ISE055 and AVX10.2-rev2.0. This version includes support for: - Intel Diamond Rapids (DMR) chip - Diamond Rapids AMX instructions - MOVRS and AVX10-MOVRS instructions - SM4 EVEX instructions - MSR-IMM instructions (including APX-promoted variants) - Encoding updates for various AVX10.2 instructions - Other updates across XED chip definitions General - Shared Library Build for Python: Introduces a unique XED shared library build, exposing all XED APIs via a shared library object. This enables the library to be loaded in Python environments, allowing interaction with XED using Python APIs. See the [examples in pyext/README.md](pyext/examples/README.md) for more details. (Closes intelxed#302) - Disassembler Enhancements: Adds support for emitting CS/DS ignored branch hint prefixes, configurable through the `xed_format_options_t` structure. - Updates minimum Python requirement from 3.8 to 3.9. - Improves Internal ISA definition APX files (See intelxed#338) Fixes - Resolves C11 build warnings with GCC (Fixes intelxed#332) - Improves length and error reporting for illegal instructions caused by a zeroed EVEX map (Resolves intelxed#334) Co-authored-by: Arjevani, Maor <maor.arjevani@intel.com>
Merge pull request #1 from LLVMParty/fix_ubsan_errors Fix some UBSan errors
External Release v2024.09.09 General: - Set the default security build level to 2, enabling the build of a more secure C library by default. If needed, users can lower the security level using the `--security-level=1` build option. Add: - Add AVX10/256 VL-ignored (Neither SAE nor Embedded-RC behavior) instructions. - Add ENC2 support for AVX10/256VL Embedded-RC instructions. Fix: - Fix potential buffer overflow in ILD (resolves intelxed#331) - Resolve Python 3.12 Regex syntax warnings. Co-authored-by: marjevan <marjevan@users.noreply.github.com>
External Release v2024.08.15 The release adds support for Intel Advanced Vector Extensions 10.2 (Intel® AVX10.2) ISA, compliant with the AVX10.2 architecture specification rev-1.0 (July 2024). Added: - Decoder and encoder support for Intel AVX10.2 new ISA (No ENC2 support for YMM embedded-RC) Fixed: - MPX: Removed wrong support for 16-bit addressing variants (intelxed#57) Co-authored-by: marjevan <marjevan@users.noreply.github.com>
External Release v2024.04.01
This release updates XED according to Intel's latest APX spec (Rev-04), April 2024.
It includes:
- Remove promoted SHA and KeyLocker EVEX instructions
- Encoding update for URDMSR/UWRMSR
- Addition of missing CPUID sensitivity for promoted POPCNT EVEX instruction
- Update the handling of EVEX.U and reinterpretation to X4
General:
- Enable a secured build using a new `--security-level` mfile.py knob (1->Medium, 2->High, 3->Highest).
The default level is 1 (will be raised to 2 in a future release)
Please expect performance degradation with level 3.
- Drop the ICC/ICL build options using mfile.py
Add:
- AMX: Support the restriction of illegal register combination (Solves intelxed#303)
- Disassembler: Print sequential registers using "+(N-1)" notation
- Add ENC2 support for Intel APX architecture (TBD: REX2 for EGPR support)
- Add ENC2 support for KOP instructions
Fix:
- ISA definition fixes (APX/MOVDIR64B missing operands, Fix CPUID for SYS{ENTER,EXIT}, fix MMX extensions)
- RFLAGS: Fix width definition and wrong duplicated operands for several instructions (Solves intelxed#320)
- Fix CPL definition for ENQCMDS (Solves intelxed#311)
- Fix CPL definition for LGDT (Solves intelxed#312)
- Fix CPL definition for VMCALL (Solves intelxed#313)
- Several bug fixes and improvements for the ENC2 library.
For a list of unsupported IFORMS, please check the `enc2_unsupported_ref.json` file.
- Fix build with the clang built of llvm-project trunk (Solves intelxed#315)
Modify:
- Improve Python code quality
(Solves intelxed#314)
(Solves intelxed#317)
We express our gratitude to all members of the XED community for their valuable contributions.
Co-authored-by: marjevan <marjevan@users.noreply.github.com>
External Release v2023.12.19 This release updates XED according to Intel APX (Rev-03) and Intel AVX10 (Rev-02) architecture specifications, December 2023. General: - The XED user guide was updated with explanations for APX, AVX10, and more (https://intelxed.github.io/) - Updated Python version requirement and documentation to 3.8 (closes intelxed#306) Added: - Added new APX promoted instructions: RAO-INT and USER-MSR (APX Arch Spec Rev-03) - Added a complete XED encoder support for Intel APX architecture - APX(CCMPcc/CTESTcc): Added operand parser API that extracts the default-flags-values from XED DFV pseudo-register - Updated APX CPUID sensitivity with additional Legacy/VEX CPUID records - FRED: Added compatibility mode SYSCALL Fixed: - Fixed missing REX2 prefix restriction for several legacy instructions - APX/JMPABS: Added missing RIP suppressed operand - ENC2: Fixed the encoding of instruction's operands - Fixed CPUID records for KEYLOCKER and MOVDIR instructions Modified: - Updated AVX10 CPUID sensitivity of 64-bit KMASK instructions (AVX10 Arch Spec Rev-02) - Improved Python code for genutil.py (resolves intelxed#307) Co-authored-by: marjevan <marjevan@users.noreply.github.com>
PreviousNext