diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-03 14:01:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-03 14:01:57 -0700 |
commit | 91cf5f4ffc98fb0a610910d19f529ac464d92290 (patch) | |
tree | 2ad32b0bc468bd2094b9206c3c70b651d8f26785 /src/parseTools.js | |
parent | 1e3e0e5cf1ab9866faadbce1b1861d9fd79a80fb (diff) |
assert on no fp80s etc. in non-x86 target
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 2b621833..5cbefdb1 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -638,6 +638,7 @@ function IEEEUnHex(stringy) { while (stringy.length < 16) stringy = '0' + stringy; if (FAKE_X86_FP80 && stringy.length > 16) { stringy = stringy.substr(stringy.length-16, 16); + assert(TARGET_X86, 'must only see >64 bit floats in x86, as fp80s'); warnOnce('.ll contains floating-point values with more than 64 bits. Faking values for them. If they are used, this will almost certainly break horribly!'); } assert(stringy.length === 16, 'Can only unhex 16-digit double numbers, nothing platform-specific'); // |long double| can cause x86_fp80 which causes this |