• Home
  • History
  • Annotate
  • only in /external/arm-neon-tests/
NameDateSize

..29-Aug-201712 KiB

Android.mk29-Aug-20173 KiB

armscript.inc29-Aug-2017307

compute_ref.axf29-Aug-20173.4 MiB

compute_ref.c29-Aug-20179.3 KiB

compute_ref.gccarm29-Aug-20174.3 MiB

compute_ref.gccarm-rvct29-Aug-20174.6 MiB

compute_ref_data.c29-Aug-201721.6 KiB

expected_input4gcc-nofp16.txt29-Aug-2017546.4 KiB

expected_input4gcc.txt29-Aug-2017587.7 KiB

Init.s29-Aug-201711.7 KiB

InitCache.s29-Aug-20172.3 KiB

LICENSE29-Aug-2017204

license.html29-Aug-201725.4 KiB

Makefile29-Aug-20176.8 KiB

Makefile.gcc29-Aug-20175.2 KiB

README29-Aug-20172.3 KiB

ref-rvct-all.txt29-Aug-2017571.9 KiB

ref-rvct-neon-nofp16.txt29-Aug-2017494 KiB

ref-rvct-neon.txt29-Aug-2017528.2 KiB

ref_dsp.c29-Aug-201713 KiB

ref_dspfns.c29-Aug-201748.7 KiB

ref_integer.c29-Aug-20178.5 KiB

ref_v_binary_op.c29-Aug-20172.9 KiB

ref_v_binary_sat_op.c29-Aug-20173.9 KiB

ref_v_comp_f_op.c29-Aug-20173 KiB

ref_v_comp_op.c29-Aug-20177.8 KiB

ref_v_unary_op.c29-Aug-20173 KiB

ref_v_unary_sat_op.c29-Aug-20173.3 KiB

ref_vaba.c29-Aug-20174.3 KiB

ref_vabal.c29-Aug-20174.3 KiB

ref_vabd.c29-Aug-20174.5 KiB

ref_vabdl.c29-Aug-20173.1 KiB

ref_vabs.c29-Aug-20171.8 KiB

ref_vadd.c29-Aug-20171.9 KiB

ref_vaddhn.c29-Aug-20173.2 KiB

ref_vaddl.c29-Aug-20173.5 KiB

ref_vaddw.c29-Aug-20173.5 KiB

ref_vand.c29-Aug-20171.2 KiB

ref_vbic.c29-Aug-20171.2 KiB

ref_vbsl.c29-Aug-20173.8 KiB

ref_vcage.c29-Aug-20171.2 KiB

ref_vcagt.c29-Aug-20171.2 KiB

ref_vcale.c29-Aug-20171.2 KiB

ref_vcalt.c29-Aug-20171.2 KiB

ref_vceq.c29-Aug-20172 KiB

ref_vcge.c29-Aug-20171.2 KiB

ref_vcgt.c29-Aug-20171.2 KiB

ref_vcle.c29-Aug-20171.2 KiB

ref_vcls.c29-Aug-20173.7 KiB

ref_vclt.c29-Aug-20171.2 KiB

ref_vclz.c29-Aug-20175.1 KiB

ref_vcnt.c29-Aug-20173 KiB

ref_vcombine.c29-Aug-20173.8 KiB

ref_vcreate.c29-Aug-20174.2 KiB

ref_vcvt.c29-Aug-20179 KiB

ref_vdup.c29-Aug-20173.6 KiB

ref_vdup_lane.c29-Aug-20172.9 KiB

ref_veor.c29-Aug-20171.2 KiB

ref_vext.c29-Aug-20173.7 KiB

ref_vget_high.c29-Aug-20172.8 KiB

ref_vget_lane.c29-Aug-20173.8 KiB

ref_vget_low.c29-Aug-20172.8 KiB

ref_vhadd.c29-Aug-20171.2 KiB

ref_vhsub.c29-Aug-20171.2 KiB

ref_vld1.c29-Aug-20172.3 KiB

ref_vld1_dup.c29-Aug-20172.4 KiB

ref_vld1_lane.c29-Aug-20174.7 KiB

ref_vldX.c29-Aug-20178 KiB

ref_vldX_dup.c29-Aug-20177 KiB

ref_vldX_lane.c29-Aug-20179.5 KiB

ref_vmax.c29-Aug-20175.2 KiB

ref_vmin.c29-Aug-20171.2 KiB

ref_vmla.c29-Aug-20174.9 KiB

ref_vmla_lane.c29-Aug-20174.3 KiB

ref_vmla_n.c29-Aug-20173.9 KiB

ref_vmlal.c29-Aug-20174 KiB

ref_vmlal_lane.c29-Aug-20173.5 KiB

ref_vmlal_n.c29-Aug-20173 KiB

ref_vmls.c29-Aug-20171.2 KiB

ref_vmls_lane.c29-Aug-20171.2 KiB

ref_vmls_n.c29-Aug-20171.2 KiB

ref_vmlsl.c29-Aug-20171.2 KiB

ref_vmlsl_lane.c29-Aug-20171.2 KiB

ref_vmlsl_n.c29-Aug-20171.2 KiB

ref_vmovl.c29-Aug-20172 KiB

ref_vmovn.c29-Aug-20172 KiB

ref_vmul.c29-Aug-20174.5 KiB

ref_vmul_lane.c29-Aug-20173.7 KiB

ref_vmul_n.c29-Aug-20173.1 KiB

ref_vmull.c29-Aug-20172.8 KiB

ref_vmull_lane.c29-Aug-20172.9 KiB

ref_vmull_n.c29-Aug-20172.8 KiB

ref_vmvn.c29-Aug-20174.3 KiB

ref_vneg.c29-Aug-20171.8 KiB

ref_vorn.c29-Aug-20171.2 KiB

ref_vorr.c29-Aug-20171.2 KiB

ref_vpadal.c29-Aug-20175.1 KiB

ref_vpadd.c29-Aug-20173.2 KiB

ref_vpaddl.c29-Aug-20174.1 KiB

ref_vpmax.c29-Aug-20171.2 KiB

ref_vpmin.c29-Aug-20171.2 KiB

ref_vqabs.c29-Aug-20172.6 KiB

ref_vqadd.c29-Aug-20175.6 KiB

ref_vqdmlal.c29-Aug-20173.3 KiB

ref_vqdmlal_lane.c29-Aug-20173.7 KiB

ref_vqdmlal_n.c29-Aug-20173.1 KiB

ref_vqdmlsl.c29-Aug-20171.2 KiB

ref_vqdmlsl_lane.c29-Aug-20171.2 KiB

ref_vqdmlsl_n.c29-Aug-20171.2 KiB

ref_vqdmulh.c29-Aug-20173.9 KiB

ref_vqdmulh_lane.c29-Aug-20174.1 KiB

ref_vqdmulh_n.c29-Aug-20173.8 KiB

ref_vqdmull.c29-Aug-20173.2 KiB

ref_vqdmull_lane.c29-Aug-20173.6 KiB

ref_vqdmull_n.c29-Aug-20173.5 KiB

ref_vqmovn.c29-Aug-20174 KiB

ref_vqmovun.c29-Aug-20173.2 KiB

ref_vqneg.c29-Aug-20172.6 KiB

ref_vqrdmulh.c29-Aug-20174.7 KiB

ref_vqrdmulh_lane.c29-Aug-20174.7 KiB

ref_vqrdmulh_n.c29-Aug-20174.3 KiB

ref_vqrshl.c29-Aug-201711.6 KiB

ref_vqrshrn_n.c29-Aug-20174.8 KiB

ref_vqrshrun_n.c29-Aug-20175 KiB

ref_vqshl.c29-Aug-20179.1 KiB

ref_vqshl_n.c29-Aug-20174.7 KiB

ref_vqshlu_n.c29-Aug-20175.8 KiB

ref_vqshrn_n.c29-Aug-20174.8 KiB

ref_vqshrun_n.c29-Aug-20174 KiB

ref_vqsub.c29-Aug-20175.7 KiB

ref_vraddhn.c29-Aug-20171.2 KiB

ref_vrecpe.c29-Aug-20174.8 KiB

ref_vrecps.c29-Aug-20173.9 KiB

ref_vreinterpret.c29-Aug-201718.1 KiB

ref_vrev.c29-Aug-20173.4 KiB

ref_vrhadd.c29-Aug-20171.2 KiB

ref_vrshl.c29-Aug-20178 KiB

ref_vrshr_n.c29-Aug-20178.1 KiB

ref_vrshrn_n.c29-Aug-20174.2 KiB

ref_vrsqrte.c29-Aug-20174.7 KiB

ref_vrsqrts.c29-Aug-20173.9 KiB

ref_vrsra_n.c29-Aug-20178.6 KiB

ref_vrsubhn.c29-Aug-20171.2 KiB

ref_vset_lane.c29-Aug-20173.1 KiB

ref_vshl.c29-Aug-20173.4 KiB

ref_vshl_n.c29-Aug-20172.5 KiB

ref_vshll_n.c29-Aug-20172.2 KiB

ref_vshr_n.c29-Aug-20172.6 KiB

ref_vshrn_n.c29-Aug-20172.8 KiB

ref_vsli_n.c29-Aug-20173.5 KiB

ref_vsra_n.c29-Aug-20173.3 KiB

ref_vsri_n.c29-Aug-20173.6 KiB

ref_vst1_lane.c29-Aug-20173.1 KiB

ref_vstX_lane.c29-Aug-20179.4 KiB

ref_vsub.c29-Aug-20171.9 KiB

ref_vsubhn.c29-Aug-20171.2 KiB

ref_vsubl.c29-Aug-20171.2 KiB

ref_vsubw.c29-Aug-20171.2 KiB

ref_vsXi_n.c29-Aug-20174 KiB

ref_vtbX.c29-Aug-20176.8 KiB

ref_vtrn.c29-Aug-20171.2 KiB

ref_vtst.c29-Aug-20173.5 KiB

ref_vuzp.c29-Aug-20176 KiB

ref_vzip.c29-Aug-20171.2 KiB

retarget.c29-Aug-20171.1 KiB

scatter.scat29-Aug-2017817

stm-arm-neon-ref.h29-Aug-201729 KiB

README

1ARM Neon reference tests
2========================
3This package contains extensive tests for the ARM/Neon instructions.
4
5It works by building a program which uses all of them, and then
6executing it on an actual target or a simulator.
7
8It can be used to validate the simulator against an actual HW target,
9or to validate C compilers in presence of Neon intrinsics calls.
10
11The supplied Makefile enables to build with both ARM RVCT compiler and
12GNU GCC (for the ARM target), and supports execution with ARM RVDEBUG
13on an ARM simulator and with QEMU.
14
15For convenience, the ARM ELF binary file (as compiled with RVCT) is
16supplied (compute_ref.axf), as well as expected output (ref-rvct.txt).
17
18A second file containing expected output is also supplied:
19ref-rvct-neon.txt, which contains only the results of the Neon
20instrinsics tests. It is aimed at being used to check GCC's results,
21since this compiler does not support the integer & dsp builtins whose
22results are also present in ref-rvct.txt.
23
24Typical usage when used to debug QEmu:
25$ make all # to build the test program with ARM rvct and execute with QEmu
26$ make check # to compare the results with the expected output
27
28
29Known issues:
30-------------
31Some tests currently fail to build with GCC/ARM:
32- missing include files: dspfns.h, armdsp.h
33
34As GCC/ARM provides no support for the
35Neon_Cumulative_Saturation/fpsrc register, auxiliary accessor
36functions have been implemented in stm-arm-neon-ref.h.
37
38Engineering:
39------------
40In order to cover all the Neon instructions extensively, these tests
41make intensive use of the C-preprocessor, to save maintenance efforts.
42
43Most tests (the more regular ones) share a common basic structure. In
44general, variable names are suffixed by their type name, so as to
45differentiate variables with the same purpose but of differente types.
46Hence vector1_int8x8, vector1_int16x4 etc...
47
48For instance in ref_vmul.c the layout of the code is as follows:
49
50- declare input and output vectors (named 'vector1', 'vector2' and
51  'vector_res') of each possible type (s/u, 8/16/32/64 bits).
52
53- clean the result buffers.
54
55- initialize input vectors 'vector1' and 'vector2'.
56
57- call each variant of the intrinsic and store the result in a buffer
58  named 'buffer', whose contents is printed after execution.
59
60One can then compare the actual result with the expected one.
61