summaryrefslogtreecommitdiff
path: root/orc-test
AgeCommit message (Collapse)AuthorFilesLines
2024-02-21neon: Use the real intrinsics for divf and sqrtfL. E. Segovia1-55/+1
The existing implementation used the reciprocal for the calculations, without windowing out denormals. Fixes #62 Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/169>
2024-01-29testsuite: Fix build with standards compliant ClangL. E. Segovia1-2/+2
As per https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html, the correct macro to be used is `__asm__`. While at it, also ensure that Clang is recognised with the correct macro. Fixes #59 Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/159>
2023-12-26testsuite: Add the possibility to run tests on a specific targetL. E. Segovia2-3/+12
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/111>
2023-12-25orctest: Fix forgotten pointer dereference for printing 64-bit integersL. E. Segovia1-1/+1
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/135>
2023-12-06exec_opcodes_sys: Allow integer tests to be marked as failureL. E. Segovia1-0/+1
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/116>
2023-12-06orctest: Implement centralised OrcProgram dumpingL. E. Segovia1-6/+24
This enables dumping the OrcCode prior to it running, in case it's the running itself that causes a crash (due to miscodegen, unaligned or OOB I/O...). Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/116>
2023-12-06orctest: Output a complete (and unconverted) picture of the variable state ↵L. E. Segovia1-23/+156
for accumulators Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/116>
2023-12-06exec_opcodes_sys: Improve logging and tally tests statusesL. E. Segovia2-1/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/116>
2023-11-27orcprofile: Implement Windows high-resolution timestamp for MSVCL. E. Segovia1-6/+20
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/114>
2023-05-29orc-test: Correctly check if the current target is NEONSebastian Dröge1-1/+5
The flags passed in here are the orc test flags and not the target flags. Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/103>
2023-01-05Meson: Do not always generate static library for test libraryJeremy Bicha1-10/+3
Follow-up from ae14127e7131e5d7e747abf3f5988f8057c8ad48 Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/85>
2022-06-15neon: Fix testsuite not passing on arm CPUsGaetan Bahl1-1/+70
Set the FPCR.FZ bit before running tests using ARM NEON, in order to make tests pass for most opcodes. Add a way to check for expected failures in the test suite, since ARM NEON does not comply to IEEE754. Errors are expected when using divf (resp. sqrtf) on large (resp. small) numbers. Fixes #33, #20 Signed-off-by: Gaetan Bahl <gaetan.bahl@nxp.com>
2021-08-19meson: Set recursive for extract_all_objects()Doug Nazar1-1/+1
Fixes the following warning: WARNING: extract_all_objects called without setting recursive keyword argument. Meson currently defaults to non-recursive to maintain backward compatibility but the default will be changed in the future. orc-test\meson.build:16:0: ERROR: Fatal warnings enabled, aborting
2020-07-29meson: Use pkgconfig.generateJan Alexander Steffens (heftig)1-1/+0
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/49>
2019-09-13orctest: Fix parentheses location in ULP testDoug Nazar1-2/+2
2019-09-08Drop support for Autotools as build systemTim-Philipp Müller1-23/+0
2019-08-31orctest: Fix ULP compare and make compatible with clangDoug Nazar2-4/+12
2019-08-27build: fix werror build with clangMatthew Waters2-4/+4
../subprojects/orc/orc-test/orcarray.c:230:47: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] if ((a[i] < 0.0) == (b[i] < 0.0) && abs(*(orc_uint32 *)&a[i] - *(orc_uint32 *)&b[i]) <= 2) continue; ^ ../subprojects/orc/orc-test/orcarray.c:230:47: note: remove the call to 'abs' since unsigned values cannot be negative if ((a[i] < 0.0) == (b[i] < 0.0) && abs(*(orc_uint32 *)&a[i] - *(orc_uint32 *)&b[i]) <= 2) continue; ^~~ ../subprojects/orc/orc-test/orcarray.c:247:47: error: taking the absolute value of unsigned type 'unsigned long' has no effect [-Werror,-Wabsolute-value] if ((a[i] < 0.0) == (b[i] < 0.0) && abs(*(orc_uint64 *)&a[i] - *(orc_uint64 *)&b[i]) <= 2) continue; ^ ../subprojects/orc/orc-test/orcarray.c:247:47: note: remove the call to 'abs' since unsigned values cannot be negative if ((a[i] < 0.0) == (b[i] < 0.0) && abs(*(orc_uint64 *)&a[i] - *(orc_uint64 *)&b[i]) <= 2) continue; ^~~ ../subprojects/orc/orc-test/orctest.c:525:63: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] if ((*(float *)ptr1 < 0.0) == (*(float *)ptr2 < 0.0) && abs(*(orc_uint32 *)ptr1 - *(orc_uint32 *)ptr2) <= 2) return TRUE; ^ ../subprojects/orc/orc-test/orctest.c:525:63: note: remove the call to 'abs' since unsigned values cannot be negative if ((*(float *)ptr1 < 0.0) == (*(float *)ptr2 < 0.0) && abs(*(orc_uint32 *)ptr1 - *(orc_uint32 *)ptr2) <= 2) return TRUE; ^~~ ../subprojects/orc/orc-test/orctest.c:530:65: error: taking the absolute value of unsigned type 'unsigned long' has no effect [-Werror,-Wabsolute-value] if ((*(double *)ptr1 < 0.0) == (*(double *)ptr2 < 0.0) && abs(*(orc_uint64 *)ptr1 - *(orc_uint64 *)ptr2) <= 2) return TRUE; ^ ../subprojects/orc/orc-test/orctest.c:530:65: note: remove the call to 'abs' since unsigned values cannot be negative if ((*(double *)ptr1 < 0.0) == (*(double *)ptr2 < 0.0) && abs(*(orc_uint64 *)ptr1 - *(orc_uint64 *)ptr2) <= 2) return TRUE; ^~~
2019-08-18orctest: print_array_val_float return value not usedDoug Nazar1-8/+5
2019-08-07orctest: Switch nearby float comparison to ULP methodDoug Nazar2-9/+6
2019-03-05Add pkg-config file for orc-test libraryTim-Philipp Müller1-0/+9
Fixes #16
2018-11-14meson: Maintain macOS ABI compatibilityNirbheek Chauhan1-0/+1
Need to use the correct dylib versioning.
2018-05-18Fix MSVC compiler warningTim-Philipp Müller2-5/+0
The isnan() macro was redefined to _isnan() on MSVC, but it's been in math.h since vs2013, so it should be safe to rely on it unconditionally nowadays, and we have no intention of supporting ancient vs versions anyway.
2018-05-04orctest: Allow enough room for sprintf()Edward Hervey1-2/+2
We were writing more than 300 characters in some cases. Thanks gcc 8 for pointing that out :)
2018-04-28autotools: control symbol visibility via -fvisibilityTim-Philipp Müller1-0/+1
All symbols are hidden by default unless exported explicitly via our public API decorators.
2018-04-28meson: fix symbol export with MSVC and use -fvisibility elsewhereTim-Philipp Müller3-18/+6
Use newly-added ORC_API decorators to export symbols explicitly. Get rid of orc.map file and the ORC_EXPORT stuff that never did anything anyway (define was unused).
2018-04-28orc-test: decorate public symbols with ORC_TEST_APITim-Philipp Müller4-14/+67
We'll use that later to control symbol visibility and exported symbols.
2017-11-22meson: Always build both shared and static librariesNirbheek Chauhan1-1/+15
This reuses objects from the shared library for the static library, so it should not affect the build time at all. orc_dep and orc_test_dep will still contain the library selected by --default-library
2017-11-20Build liborc-test also as a properly versioned library with mesonSebastian Dröge2-0/+17
2017-11-20Allow building shared/static library based on configurationSebastian Dröge1-1/+1
Before only a shared library was possible
2017-05-13meson: add meson buildTim-Philipp Müller1-0/+12
Includes contributions from Nirbheek Chauhan <nirbheek@centricular.com>
2016-07-24tests: fix a warning spotted when building in osxJosep Torra1-1/+1
orctest.c:730:19: error: logical not is only applied to the left hand side of this comparison if (!float_compare (dest_emul[l-ORC_VAR_D1], dest_exec[l-ORC_VAR_D1], i, j) != 0) { It seems some sort of typo. Fixing by removing the potentially leftover condition.
2015-03-12test: protect against out-of-boundsLuis de Bethencourt1-2/+2
Same as commit 8bc018cbbe25521f91ecba0fc98185d2eaac650d CID #1146994 CID #1146995
2015-03-12test: protect against going out of boundsLuis de Bethencourt1-1/+1
Conditions should never happen but protect against going out of bounds in the args array. CID #1146993
2014-06-27orcarray: Use size_t for pointer arithmeticsEdward Hervey1-1/+1
Fixes these warnings on windows x86_64: orcarray.c:80:33: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] orcarray.c:80:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
2014-06-23build: Modernize autotools build systemSebastian Dröge1-3/+1
2014-05-19orcarray: Use fabs() instead of abs(), the latter is for integersSebastian Dröge1-1/+1
orcarray.c:254:15: error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value] if (abs(a[i] - b[i]) < MIN_NONDENORMAL_D) continue;
2014-04-14orcarray: Fix compiler warning with gcc 4.9Sebastian Dröge1-1/+2
In file included from ../orc/orcprogram.h:5:0, from ../orc/orc.h:5, from ../orc-test/orctest.h:5, from orcarray.c:6: ../orc/orcutils.h:124:37: error: 'data' may be used uninitialized in this function [-Werror=maybe-uninitialized] #define ORC_PTR_OFFSET(ptr,offset) ((void *)(((unsigned char *)(ptr)) + (offset))) ^ orcarray.c:42:9: note: 'data' was declared here void *data;
2013-10-14Make it ANSI-COlivier Crête3-10/+10
Use /* */ instead of // Define _GNU_SOURCE in the ORC_CFLAGS
2013-05-27orc-test: Fix typo in #ifdefSebastian Dröge1-1/+1
2013-02-19test: Fix recent commitDavid Schleef2-7/+11
Separate allocated data and aligned data.
2013-02-19test: Use the aligned pointer, not something elseDavid Schleef1-2/+1
2012-12-28mips: added copyright headersGuillaume Emont1-0/+26
2012-12-28mips: added test for binary code generationGuillaume Emont2-0/+97
2012-04-01test: allocate aligned memory on windowsDavid Schleef1-3/+5
2011-10-15test: fix unused variable warningDavid Schleef1-1/+1
2011-10-02test: Add (disabled) ability to test 64-bit pointersDavid Schleef1-1/+30
2011-10-02test: disable complaints about codegen failuresDavid Schleef1-4/+4
2011-09-24Fix up c64x-c backendDavid Schleef1-2/+3
2011-07-09Move ORC_GNUC_UNUSED to orcutils.h and use itDavid Schleef1-6/+0