diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-01-19 08:49:27 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-01-19 08:49:27 +0100 |
commit | 0b40e290e3cc561a92abe09e114b82cbde2eda29 (patch) | |
tree | d42c7e8109ba16338f459b9387b59358813a0c19 /tests/checkasm/checkasm.c | |
parent | 774c5357dbe62ba6017ecbe6738a73644cd5bb5d (diff) | |
parent | 26ec75aec3576daea691dee53a78ec67c0dc4040 (diff) | |
download | ffmpeg-0b40e290e3cc561a92abe09e114b82cbde2eda29.tar.gz |
Merge commit '26ec75aec3576daea691dee53a78ec67c0dc4040'
* commit '26ec75aec3576daea691dee53a78ec67c0dc4040':
checkasm: Check register clobbering on arm
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'tests/checkasm/checkasm.c')
-rw-r--r-- | tests/checkasm/checkasm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index 7f2cf8ef30..33c6d8c7af 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -53,6 +53,12 @@ #define isatty(fd) 1 #endif +#if ARCH_ARM && HAVE_ARMV5TE_EXTERNAL +#include "libavutil/arm/cpu.h" + +void (*checkasm_checked_call)(void *func, int dummy, ...) = checkasm_checked_call_novfp; +#endif + /* List of tests to invoke */ static const struct { const char *name; @@ -479,6 +485,11 @@ int main(int argc, char *argv[]) { int i, seed, ret = 0; +#if ARCH_ARM && HAVE_ARMV5TE_EXTERNAL + if (have_vfp(av_get_cpu_flags()) || have_neon(av_get_cpu_flags())) + checkasm_checked_call = checkasm_checked_call_vfp; +#endif + if (!tests[0].func || !cpus[0].flag) { fprintf(stderr, "checkasm: no tests to perform\n"); return 0; |