Skip to content

Floating point add gives different results than compiler-rt on arm-unknown-linux-gnueabi #90

Closed
@mattico

Description

@mattico

I'm still trying to figure out what was wrong with #48, and I'd like another pair of eyes on this because I have no idea what is going on.

I added an implementation of arbitrary_float! again, and ran the tests. Only the arm-unknown-linux-gnueabi target failed. So I grab the arguments that made the test fail and put them into a regular test. On the next build, the test passes because we're actually getting the right answer in this case. It's gcc_s and compiler-rt that have the wrong answer.

Either:

  1. There's some subtle bug in the test infrastructure
  2. gcc_s and libcompiler-rt both have the same bug but we don't despite the code being almost identical to compiler-rt
  3. QEMU is broken but only in this specific way
  4. The C compiler's optimizations cause rounding in very small numbers, but rustc does not
  5. Something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions