The SIKE/SIDH operations cause a crash with SIGILL (illegal instruction) on x86‑64 CPUs that support BMI2…
The SIKE/SIDH operations cause a crash with SIGILL (illegal instruction) on x86‑64 CPUs that support BMI2…: a task in LegoFlow-SWE (Harbor dataset). The crash happens because the library decides to use an optimized assembly implementation based only on BMI2 availability. That assembly code…
The task
The crash happens because the library decides to use an optimized assembly implementation based only on BMI2 availability. That assembly code, however, contains the `adox` instruction, which is part of ADX, not BMI2. Although both extensions share the `mulx` instruction, `adox` is exclusive to ADX. Therefore, on a…
Part of Lego-X/LegoFlow-SWE.