Skip to content

Floating Point Exception in Benchmarks on x64 #927

@mborland

Description

@mborland
====== BEGIN OUTPUT ======
===== Comparisons =====
comparisons<float      >: 898493     us (s=299999985)
comparisons<double     >: 917205     us (s=299999985)
comparisons<decimal32  >: 11634933   us (s=299999985)
comparisons<decimal64  >: 17684837   us (s=299999985)
comparisons<decimal128 >: 49291209   us (s=299999985)
comparisons<dec32_fast >: 4770787    us (s=299999985)
comparisons<dec64_fast >: 4812826    us (s=299999985)
comparisons<dec128_fast>: 8190789    us (s=299999985)

===== Addition =====
Addition<float      >: 1091704    us (s=0)
Addition<double     >: 1166187    us (s=0)
../../../boost/decimal/detail/power_tables.hpp:222:73: runtime error: index 24 out of bounds for type 'long unsigned int [20]'
../../../boost/decimal/detail/power_tables.hpp:222:74: runtime error: load of address 0x63439cf06720 with insufficient space for an object of type 'const uint64_t'
0x63439cf06720: note: pointer points here
 00 00 00 00  64 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  e8 03 00 00 00 00 00 00  00 00 00 00
              ^ 
../../../boost/decimal/detail/to_integral.hpp:83:16: runtime error: division by zero
Floating point exception (core dumped)

EXIT STATUS: 136
====== END OUTPUT ======
...removing ../../../bin.v2/libs/decimal/test/benchmarks.test/gcc-13/debug/x86_64/cxxstd-14-iso/threading-multi/visibility-hidden/benchmarks.run
(failed-as-expected) ../../../bin.v2/libs/decimal/test/benchmarks.test/gcc-13/debug/x86_64/cxxstd-14-iso/threading-multi/visibility-hidden/benchmarks.run
**passed** ../../../bin.v2/libs/decimal/test/benchmarks.test/gcc-13/debug/x86_64/cxxstd-14-iso/threading-multi/visibility-hidden/benchmarks.test

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions