1. 02 Jan, 2025 2 commits
    • Russell Graves's avatar
      arm neon sli_n: Fix invalid shift warnings (#1253) · a39bd6dd
      Russell Graves authored
      Per the ARMv8 manual, the valid range of shifts for the vector SLI
      operations is "0 to the element width in bits minus 1."  The existing
      SIMDe implementation creates an invalid shift in the case of 0, as
      the shifts are (element width - n) - so, for a 0-bit shift on a
      64-bit value, the shift is 64.  This is undefined per the C spec, and
      leads to compiler warnings on build.
      
      This fix changes the sli_n shift operations to work properly for the
      valid range of values, shifting ((element width - 1) - n), with a
      modified constant value to generate the same results (7f... instead
      of ff...).
      
      While the existing tests all pass with the change, a number of the
      tests have been modified (and have new constant values generated) to
      properly exercise and demonstrate the "n == 0" shift case.  These
      test vectors were generated on an ARMv9 system (Google Compute Engine
      C4A system), and pass on x86 hardware as well.
      a39bd6dd
    • Michael R. Crusoe's avatar
  2. 19 Dec, 2024 1 commit
  3. 17 Dec, 2024 3 commits
  4. 11 Dec, 2024 6 commits
  5. 05 Dec, 2024 1 commit
  6. 04 Dec, 2024 1 commit
  7. 28 Nov, 2024 1 commit
  8. 26 Nov, 2024 1 commit
  9. 23 Nov, 2024 2 commits
  10. 22 Sep, 2024 1 commit
  11. 18 Sep, 2024 1 commit
  12. 15 Sep, 2024 1 commit
  13. 13 Sep, 2024 4 commits
  14. 12 Sep, 2024 3 commits
  15. 10 Sep, 2024 4 commits
  16. 20 Aug, 2024 4 commits
  17. 12 Aug, 2024 1 commit
  18. 20 Jul, 2024 1 commit
  19. 14 Jul, 2024 1 commit
  20. 02 Jul, 2024 1 commit