[llvm-bugs] [Bug 44776] New: Compilation doesn't terminate with -ffp-model=strict, -float-abi=hard, and --target=armeb-none-eabihf
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Feb 4 11:17:36 PST 2020
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: unassignedbugs at nondot.org
Reporter: jjaoudi at waymo.com
CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
Ties.Stuij at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200204/086139a0/attachment.html>
More information about the llvm-bugs
mailing list