Skip to content

Floating-point abs on AArch64 NCG

Currently AArch64 NCG generates "branchful" assembly for floating-point abs. Consequences are

  • potentially slow code
  • it does not handle the sign bit of NaN.

Ideally, the NCG should just emit FABS instruction.

Relevant code:

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information