[PATCH] D98895: [X86][Draft] Disable long double type for -mno-x87 option

Andrew Savonichev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 18 14:01:24 PDT 2021


asavonic added a comment.

I'm not sure that this is the right approach, but I wanted to get feedback on
how the issue should be fixed. Currently, the compiler crashes on almost any
code with `long double` (excluding cases where CG does not properly disable x87):

  long double foo(long double x, long double y)
  {
    long double z = x + y;
    if (z < 0.0)
      return z;
    else
      return 0.0;
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98895/new/

https://reviews.llvm.org/D98895



More information about the cfe-commits mailing list