Home | History | Annotate | only in /external/arm-neon-tests
Up to higher level directory
NameDateSize
Android.mk05-Oct-20173K
armscript.inc05-Oct-2017307
compute_ref.axf05-Oct-20173.4M
compute_ref.c05-Oct-20179.3K
compute_ref.gccarm05-Oct-20174.3M
compute_ref.gccarm-rvct05-Oct-20174.6M
compute_ref_data.c05-Oct-201721.6K
expected_input4gcc-nofp16.txt05-Oct-2017546.4K
expected_input4gcc.txt05-Oct-2017587.7K
Init.s05-Oct-201711.7K
InitCache.s05-Oct-20172.3K
LICENSE05-Oct-2017204
license.html05-Oct-201725.4K
Makefile05-Oct-20176.8K
Makefile.gcc05-Oct-20175.2K
README05-Oct-20172.3K
ref-rvct-all.txt05-Oct-2017571.9K
ref-rvct-neon-nofp16.txt05-Oct-2017494K
ref-rvct-neon.txt05-Oct-2017528.2K
ref_dsp.c05-Oct-201713K
ref_dspfns.c05-Oct-201748.7K
ref_integer.c05-Oct-20178.5K
ref_v_binary_op.c05-Oct-20172.9K
ref_v_binary_sat_op.c05-Oct-20173.9K
ref_v_comp_f_op.c05-Oct-20173K
ref_v_comp_op.c05-Oct-20177.8K
ref_v_unary_op.c05-Oct-20173K
ref_v_unary_sat_op.c05-Oct-20173.3K
ref_vaba.c05-Oct-20174.3K
ref_vabal.c05-Oct-20174.3K
ref_vabd.c05-Oct-20174.5K
ref_vabdl.c05-Oct-20173.1K
ref_vabs.c05-Oct-20171.8K
ref_vadd.c05-Oct-20171.9K
ref_vaddhn.c05-Oct-20173.2K
ref_vaddl.c05-Oct-20173.5K
ref_vaddw.c05-Oct-20173.5K
ref_vand.c05-Oct-20171.2K
ref_vbic.c05-Oct-20171.2K
ref_vbsl.c05-Oct-20173.8K
ref_vcage.c05-Oct-20171.2K
ref_vcagt.c05-Oct-20171.2K
ref_vcale.c05-Oct-20171.2K
ref_vcalt.c05-Oct-20171.2K
ref_vceq.c05-Oct-20172K
ref_vcge.c05-Oct-20171.2K
ref_vcgt.c05-Oct-20171.2K
ref_vcle.c05-Oct-20171.2K
ref_vcls.c05-Oct-20173.7K
ref_vclt.c05-Oct-20171.2K
ref_vclz.c05-Oct-20175.1K
ref_vcnt.c05-Oct-20173K
ref_vcombine.c05-Oct-20173.8K
ref_vcreate.c05-Oct-20174.2K
ref_vcvt.c05-Oct-20179K
ref_vdup.c05-Oct-20173.6K
ref_vdup_lane.c05-Oct-20172.9K
ref_veor.c05-Oct-20171.2K
ref_vext.c05-Oct-20173.7K
ref_vget_high.c05-Oct-20172.8K
ref_vget_lane.c05-Oct-20173.8K
ref_vget_low.c05-Oct-20172.8K
ref_vhadd.c05-Oct-20171.2K
ref_vhsub.c05-Oct-20171.2K
ref_vld1.c05-Oct-20172.3K
ref_vld1_dup.c05-Oct-20172.4K
ref_vld1_lane.c05-Oct-20174.7K
ref_vldX.c05-Oct-20178K
ref_vldX_dup.c05-Oct-20177K
ref_vldX_lane.c05-Oct-20179.5K
ref_vmax.c05-Oct-20175.2K
ref_vmin.c05-Oct-20171.2K
ref_vmla.c05-Oct-20174.9K
ref_vmla_lane.c05-Oct-20174.3K
ref_vmla_n.c05-Oct-20173.9K
ref_vmlal.c05-Oct-20174K
ref_vmlal_lane.c05-Oct-20173.5K
ref_vmlal_n.c05-Oct-20173K
ref_vmls.c05-Oct-20171.2K
ref_vmls_lane.c05-Oct-20171.2K
ref_vmls_n.c05-Oct-20171.2K
ref_vmlsl.c05-Oct-20171.2K
ref_vmlsl_lane.c05-Oct-20171.2K
ref_vmlsl_n.c05-Oct-20171.2K
ref_vmovl.c05-Oct-20172K
ref_vmovn.c05-Oct-20172K
ref_vmul.c05-Oct-20174.5K
ref_vmul_lane.c05-Oct-20173.7K
ref_vmul_n.c05-Oct-20173.1K
ref_vmull.c05-Oct-20172.8K
ref_vmull_lane.c05-Oct-20172.9K
ref_vmull_n.c05-Oct-20172.8K
ref_vmvn.c05-Oct-20174.3K
ref_vneg.c05-Oct-20171.8K
ref_vorn.c05-Oct-20171.2K
ref_vorr.c05-Oct-20171.2K
ref_vpadal.c05-Oct-20175.1K
ref_vpadd.c05-Oct-20173.2K
ref_vpaddl.c05-Oct-20174.1K
ref_vpmax.c05-Oct-20171.2K
ref_vpmin.c05-Oct-20171.2K
ref_vqabs.c05-Oct-20172.6K
ref_vqadd.c05-Oct-20175.6K
ref_vqdmlal.c05-Oct-20173.3K
ref_vqdmlal_lane.c05-Oct-20173.7K
ref_vqdmlal_n.c05-Oct-20173.1K
ref_vqdmlsl.c05-Oct-20171.2K
ref_vqdmlsl_lane.c05-Oct-20171.2K
ref_vqdmlsl_n.c05-Oct-20171.2K
ref_vqdmulh.c05-Oct-20173.9K
ref_vqdmulh_lane.c05-Oct-20174.1K
ref_vqdmulh_n.c05-Oct-20173.8K
ref_vqdmull.c05-Oct-20173.2K
ref_vqdmull_lane.c05-Oct-20173.6K
ref_vqdmull_n.c05-Oct-20173.5K
ref_vqmovn.c05-Oct-20174K
ref_vqmovun.c05-Oct-20173.2K
ref_vqneg.c05-Oct-20172.6K
ref_vqrdmulh.c05-Oct-20174.7K
ref_vqrdmulh_lane.c05-Oct-20174.7K
ref_vqrdmulh_n.c05-Oct-20174.3K
ref_vqrshl.c05-Oct-201711.6K
ref_vqrshrn_n.c05-Oct-20174.8K
ref_vqrshrun_n.c05-Oct-20175K
ref_vqshl.c05-Oct-20179.1K
ref_vqshl_n.c05-Oct-20174.7K
ref_vqshlu_n.c05-Oct-20175.8K
ref_vqshrn_n.c05-Oct-20174.8K
ref_vqshrun_n.c05-Oct-20174K
ref_vqsub.c05-Oct-20175.7K
ref_vraddhn.c05-Oct-20171.2K
ref_vrecpe.c05-Oct-20174.8K
ref_vrecps.c05-Oct-20173.9K
ref_vreinterpret.c05-Oct-201718.1K
ref_vrev.c05-Oct-20173.4K
ref_vrhadd.c05-Oct-20171.2K
ref_vrshl.c05-Oct-20178K
ref_vrshr_n.c05-Oct-20178.1K
ref_vrshrn_n.c05-Oct-20174.2K
ref_vrsqrte.c05-Oct-20174.7K
ref_vrsqrts.c05-Oct-20173.9K
ref_vrsra_n.c05-Oct-20178.6K
ref_vrsubhn.c05-Oct-20171.2K
ref_vset_lane.c05-Oct-20173.1K
ref_vshl.c05-Oct-20173.4K
ref_vshl_n.c05-Oct-20172.5K
ref_vshll_n.c05-Oct-20172.2K
ref_vshr_n.c05-Oct-20172.6K
ref_vshrn_n.c05-Oct-20172.8K
ref_vsli_n.c05-Oct-20173.5K
ref_vsra_n.c05-Oct-20173.3K
ref_vsri_n.c05-Oct-20173.6K
ref_vst1_lane.c05-Oct-20173.1K
ref_vstX_lane.c05-Oct-20179.4K
ref_vsub.c05-Oct-20171.9K
ref_vsubhn.c05-Oct-20171.2K
ref_vsubl.c05-Oct-20171.2K
ref_vsubw.c05-Oct-20171.2K
ref_vsXi_n.c05-Oct-20174K
ref_vtbX.c05-Oct-20176.8K
ref_vtrn.c05-Oct-20171.2K
ref_vtst.c05-Oct-20173.5K
ref_vuzp.c05-Oct-20176K
ref_vzip.c05-Oct-20171.2K
retarget.c05-Oct-20171.1K
scatter.scat05-Oct-2017817
stm-arm-neon-ref.h05-Oct-201729K

README

      1 ARM Neon reference tests
      2 ========================
      3 This package contains extensive tests for the ARM/Neon instructions.
      4 
      5 It works by building a program which uses all of them, and then
      6 executing it on an actual target or a simulator.
      7 
      8 It can be used to validate the simulator against an actual HW target,
      9 or to validate C compilers in presence of Neon intrinsics calls.
     10 
     11 The supplied Makefile enables to build with both ARM RVCT compiler and
     12 GNU GCC (for the ARM target), and supports execution with ARM RVDEBUG
     13 on an ARM simulator and with QEMU.
     14 
     15 For convenience, the ARM ELF binary file (as compiled with RVCT) is
     16 supplied (compute_ref.axf), as well as expected output (ref-rvct.txt).
     17 
     18 A second file containing expected output is also supplied:
     19 ref-rvct-neon.txt, which contains only the results of the Neon
     20 instrinsics tests. It is aimed at being used to check GCC's results,
     21 since this compiler does not support the integer & dsp builtins whose
     22 results are also present in ref-rvct.txt.
     23 
     24 Typical 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 
     29 Known issues:
     30 -------------
     31 Some tests currently fail to build with GCC/ARM:
     32 - missing include files: dspfns.h, armdsp.h
     33 
     34 As GCC/ARM provides no support for the
     35 Neon_Cumulative_Saturation/fpsrc register, auxiliary accessor
     36 functions have been implemented in stm-arm-neon-ref.h.
     37 
     38 Engineering:
     39 ------------
     40 In order to cover all the Neon instructions extensively, these tests
     41 make intensive use of the C-preprocessor, to save maintenance efforts.
     42 
     43 Most tests (the more regular ones) share a common basic structure. In
     44 general, variable names are suffixed by their type name, so as to
     45 differentiate variables with the same purpose but of differente types.
     46 Hence vector1_int8x8, vector1_int16x4 etc...
     47 
     48 For 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 
     60 One can then compare the actual result with the expected one.
     61