VirtualBox

Changeset 101910 in vbox


Ignore:
Timestamp:
Nov 7, 2023 1:28:58 AM (13 months ago)
Author:
vboxsync
Message:

iprt/armv8.h: Fixed swapped immediates in Armv8A64MkInstrLogicalImm. 2nd try. bugref:10371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/armv8.h

    r101909 r101910  
    28842884         | (u2Opc                           << 29)
    28852885         | UINT32_C(0x12000000)
    2886          | ((uImm7SizeLen & UINT32_C(0x40)) << (17 - 6))
     2886         | ((uImm7SizeLen & UINT32_C(0x40)) << (22 - 6))
    28872887         | (uImm6Rotations                  << 16)
    28882888         | ((uImm7SizeLen & UINT32_C(0x3f)) << 10)
     
    33083308DECL_FORCE_INLINE(uint32_t) Armv8A64MkInstrBCond(ARMV8INSTRCOND enmCond, int32_t iImm19)
    33093309{
    3310     Assert((int)enmCond >= 0 && (int)enmCond < 16);
     3310    Assert((unsigned)enmCond < 16);
    33113311    return UINT32_C(0x54000000)
    3312          | (((uint32_t)iImm19 & 0x7ffff) <<  5)
     3312         | (((uint32_t)iImm19 & 0x7ffff) << 5)
    33133313         | (uint32_t)enmCond;
    33143314}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette