[libc] Add simple x86_64 floating point exception and rounding mode support.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 1 Dec 2020 19:39:48 +0000 (11:39 -0800)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 3 Dec 2020 20:55:12 +0000 (12:55 -0800)
commit4fff2a7e8964574b05c77d76a8d63d1f3593a258
tree812284d1ef2fb8f08c5d633d1fd420e1ca5cdee5
parentd93b8acd0949f65de5e7360c79f04a98a66cbd9d
[libc] Add simple x86_64 floating point exception and rounding mode support.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D92546
25 files changed:
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/include/CMakeLists.txt
libc/include/fenv.h.def [new file with mode: 0644]
libc/spec/stdc.td
libc/src/CMakeLists.txt
libc/src/fenv/CMakeLists.txt [new file with mode: 0644]
libc/src/fenv/feclearexcept.cpp [new file with mode: 0644]
libc/src/fenv/feclearexcept.h [new file with mode: 0644]
libc/src/fenv/fegetround.cpp [new file with mode: 0644]
libc/src/fenv/fegetround.h [new file with mode: 0644]
libc/src/fenv/feraiseexcept.cpp [new file with mode: 0644]
libc/src/fenv/feraiseexcept.h [new file with mode: 0644]
libc/src/fenv/fesetround.cpp [new file with mode: 0644]
libc/src/fenv/fesetround.h [new file with mode: 0644]
libc/src/fenv/fetestexcept.cpp [new file with mode: 0644]
libc/src/fenv/fetestexcept.h [new file with mode: 0644]
libc/test/src/CMakeLists.txt
libc/test/src/fenv/CMakeLists.txt [new file with mode: 0644]
libc/test/src/fenv/exception_status_test.cpp [new file with mode: 0644]
libc/test/src/fenv/rounding_mode_test.cpp [new file with mode: 0644]
libc/utils/FPUtil/CMakeLists.txt
libc/utils/FPUtil/DummyFEnv.h [new file with mode: 0644]
libc/utils/FPUtil/FEnv.h [new file with mode: 0644]
libc/utils/FPUtil/x86_64/FEnv.h [new file with mode: 0644]