[llvm-bugs] [Bug 42798] New: FP_ constants not defined when offloading is turned on
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jul 27 15:17:38 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42798
Bug ID: 42798
Summary: FP_ constants not defined when offloading is turned on
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: xw111luoye at gmail.com
CC: llvm-bugs at lists.llvm.org
The following constants are not defined when offload flag is added.
FP_NORMAL, FP_SUBNORMAL, FP_ZERO, FP_INFINITE, FP_NAN
https://zh.cppreference.com/w/cpp/numeric/math/FP_categories
clang++ -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda test.cpp
#include <cmath>
int main()
{
double a(0);
return (std::fpclassify(a) != FP_ZERO);
}
--
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/20190727/8491ef3e/attachment.html>
More information about the llvm-bugs
mailing list