Skip to content

[mlir][aarch64] Test failure: correctness.mlir #58531

Closed
@banach-space

Description

@banach-space

Hello 👋🏻 !

I'm looking into MLIR integration tests and I've noticed that correctness.mlir is failing on AArch64. On closer inspection, I see that that test:

  • runs some FP calculations, and then
  • verifies the generated FP output matches the expected output.

I see the following discrepancies when running these tests on AArch64:

MISMATCH 1
EXPECTED: nan
GENERATED: -nan

MISMATCH 2
EXPECTED: 0
GENERATED: 5.96046e-08

I'm a bit more worried about the 2nd case, but haven't had the bandwidth to dive deeper. I'm not sure about the 1st mismatch.

Next step
I propose that for now we XFAL this test on AArch64. I don't have the spare cycles to investigate this further at the moment, but am happy to support volunteers :)

On FP integrations tests in LLVM in general
One other thing that's worth pointing out is that such integration tests would normally reside llvm-test-suite. In particular, FP tests would use fpcmp for comparing FP results so that relative and absolute tolerances can be taken into account. Perhaps I should bring this up on Discourse 🤔 .

Thanks for taking a look!
-Andrzej

CC @pifon2a @bixia1 @Lewuathe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions