Skip to content

ARM/ARM64 returns an incorrect result for pow(x, 1) #12139

Closed

Description

@tannergooding

ARM/ARM64 currently return 0 for Math.Pow(double.Epsilon, 1) when it should be returning double.Epsilon. My best guess is that the implementation is not properly special casing y=1.

category:correctness
theme:jit-intrinsics
skill-level:beginner
cost:small

Activity

  1. tannergooding commented on Feb 27, 2019

    @tannergooding
    MemberAuthor

    CC. @AndyAyersMS logged this to track the underlying issue for dotnet/coreclr#22802

  2. tannergooding commented on Feb 27, 2019

    @tannergooding
    MemberAuthor

    There are other various cross-platform differences for the various Math functions so I am putting this into future.

  3. transferred this issue fromdotnet/coreclron Jan 31, 2020
  4. added this to the Future milestone on Jan 31, 2020
  5. added
    JitUntriaged
    on Oct 28, 2020
  6. removed
    JitUntriaged
    on Nov 25, 2020
  7. modified the milestones: Future, 6.0.0 on Nov 25, 2020
  8. added
    needs-further-triage
    on Mar 23, 2021
  9. removed
    needs-further-triage
    on Jun 7, 2021
  10. added
    Priority:3
    on Jul 26, 2021
  11. modified the milestones: 6.0.0, 7.0.0 on Aug 2, 2021
  12. removed their assignment
    on Mar 15, 2022
  13. 4 remaining items

  14. tannergooding commented on Apr 28, 2022

    @tannergooding
    MemberAuthor

    Issue is still present and should be eventually resolved. This isn't really a codegen issue, but rather an implementation issue with the underlying CRT implementation we defer to, so I've changed the area path.

  15. modified the milestones: 7.0.0, 8.0.0 on Aug 8, 2022
  16. modified the milestones: 8.0.0, Future on Aug 14, 2023
  17. added
    help wanted
    on Aug 14, 2023
  18. tannergooding commented on Aug 14, 2023

    @tannergooding
    MemberAuthor

    This is a "fix anytime" issue. It may eventually get picked up alongside other determinism changes that happen

  19. Venkad000 commented on Jun 26, 2026

    @Venkad000
    Contributor

    @tannergooding Can i take a look at this

  20. added
    in-pr
    on Jul 23, 2026
  21. added a commit that references this issue on Jul 24, 2026
    3a76b78
  22. added a commit that references this issue on Jul 26, 2026
    5170487
  23. locked and limited conversation to collaborators on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:3arch-arm32arch-arm64area-System.Numericsbughelp wantedin-pr

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions