[PATCH] D57154: [WebAssembly] Support __float128
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 24 12:33:46 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rC352100: [WebAssembly] Support __float128 (authored by djg, committed by ).
Herald added a subscriber: cfe-commits.
Changed prior to commit:
https://reviews.llvm.org/D57154?vs=183302&id=183369#toc
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57154/new/
https://reviews.llvm.org/D57154
Files:
lib/Basic/Targets/OSTargets.h
test/Preprocessor/init.c
Index: test/Preprocessor/init.c
===================================================================
--- test/Preprocessor/init.c
+++ test/Preprocessor/init.c
@@ -9159,6 +9159,7 @@
// WEBASSEMBLY-NEXT:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
// WEBASSEMBLY-NOT:#define __ELF__
// WEBASSEMBLY-NEXT:#define __FINITE_MATH_ONLY__ 0
+// WEBASSEMBLY-NEXT:#define __FLOAT128__ 1
// WEBASSEMBLY-NEXT:#define __FLT16_DECIMAL_DIG__ 5
// WEBASSEMBLY-NEXT:#define __FLT16_DENORM_MIN__ 5.9604644775390625e-8F16
// WEBASSEMBLY-NEXT:#define __FLT16_DIG__ 3
Index: lib/Basic/Targets/OSTargets.h
===================================================================
--- lib/Basic/Targets/OSTargets.h
+++ lib/Basic/Targets/OSTargets.h
@@ -771,6 +771,8 @@
// Follow g++ convention and predefine _GNU_SOURCE for C++.
if (Opts.CPlusPlus)
Builder.defineMacro("_GNU_SOURCE");
+ // Indicate that we have __float128.
+ Builder.defineMacro("__FLOAT128__");
}
public:
@@ -779,6 +781,7 @@
: OSTargetInfo<Target>(Triple, Opts) {
this->MCountName = "__mcount";
this->TheCXXABI.set(TargetCXXABI::WebAssembly);
+ this->HasFloat128 = true;
}
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57154.183369.patch
Type: text/x-patch
Size: 1174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190124/70006327/attachment.bin>
More information about the cfe-commits
mailing list