https://bugs.llvm.org/show_bug.cgi?id=44776

            Bug ID: 44776
           Summary: Compilation doesn't terminate with -ffp-model=strict,
                    -float-abi=hard, and --target=armeb-none-eabihf
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedb...@nondot.org
          Reporter: jjao...@waymo.com
                CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org,
                    ties.st...@arm.com

Trying to compile:

"""
#include <cmath>

int Foo(float a) {
  if (a / nan("")) return 0;
  return 1;
}
"""

never terminates, with the given flags:

-mbig-endian
-mcpu=cortex-r4
-mthumb
-mfpu=vfpv3-d16
-mfloat-abi=hard
--target=armeb-none-eabihf
-ffp-model=strict

Changing the fp-model to precise or float-abi to soft allows compilation to
terminate. The issue appears to related to exceptions with hard-float.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to