Skip to content
  • Peter Trommler's avatar
    95e7964b
    Fix T20638 on big-endian architectures · 95e7964b
    Peter Trommler authored and Marge Bot's avatar Marge Bot committed
    The test reads a 16 bit value from an array of 8 bit values. Naturally,
    that leads to different values read on big-endian architectures than
    on little-endian. In this case the value read is 0x8081 on big-endian
    and 0x8180 on little endian. This patch changes the argument of the `and`
    machop to mask bit 7 which is the only bit different. The test still checks
    that bit 15 is zero, which was the original issue in #20638.
    
    Fixes #20906.
    95e7964b
    Fix T20638 on big-endian architectures
    Peter Trommler authored and Marge Bot's avatar Marge Bot committed
    The test reads a 16 bit value from an array of 8 bit values. Naturally,
    that leads to different values read on big-endian architectures than
    on little-endian. In this case the value read is 0x8081 on big-endian
    and 0x8180 on little endian. This patch changes the argument of the `and`
    machop to mask bit 7 which is the only bit different. The test still checks
    that bit 15 is zero, which was the original issue in #20638.
    
    Fixes #20906.
Loading