Home | History | Annotate | only in /external/arm-neon-tests
Up to higher level directory
NameDateSize
Android.bp22-Oct-20204.7K
armscript.inc22-Oct-2020307
compute_ref.axf22-Oct-20203.4M
compute_ref.c22-Oct-20209.3K
compute_ref.gccarm22-Oct-20204.3M
compute_ref.gccarm-rvct22-Oct-20204.6M
compute_ref_data.c22-Oct-202021.6K
expected_input4gcc-nofp16.txt22-Oct-2020546.4K
expected_input4gcc.txt22-Oct-2020587.7K
Init.s22-Oct-202011.7K
InitCache.s22-Oct-20202.3K
LICENSE22-Oct-2020204
license.html22-Oct-202025.4K
Makefile22-Oct-20206.8K
Makefile.gcc22-Oct-20205.2K
METADATA22-Oct-2020441
MODULE_LICENSE_MIT22-Oct-20200
NOTICE22-Oct-2020204
OWNERS22-Oct-2020232
README22-Oct-20202.3K
ref-rvct-all.txt22-Oct-2020571.9K
ref-rvct-neon-nofp16.txt22-Oct-2020461.7K
ref-rvct-neon.txt22-Oct-2020528.2K
ref_dsp.c22-Oct-202013K
ref_dspfns.c22-Oct-202048.7K
ref_integer.c22-Oct-20208.5K
ref_v_binary_op.c22-Oct-20202.9K
ref_v_binary_sat_op.c22-Oct-20203.9K
ref_v_comp_f_op.c22-Oct-20203K
ref_v_comp_op.c22-Oct-20207.8K
ref_v_unary_op.c22-Oct-20203K
ref_v_unary_sat_op.c22-Oct-20203.3K
ref_vaba.c22-Oct-20204.3K
ref_vabal.c22-Oct-20204.3K
ref_vabd.c22-Oct-20204.5K
ref_vabdl.c22-Oct-20203.1K
ref_vabs.c22-Oct-20201.8K
ref_vadd.c22-Oct-20201.9K
ref_vaddhn.c22-Oct-20203.2K
ref_vaddl.c22-Oct-20203.5K
ref_vaddw.c22-Oct-20203.5K
ref_vand.c22-Oct-20201.2K
ref_vbic.c22-Oct-20201.2K
ref_vbsl.c22-Oct-20203.8K
ref_vcage.c22-Oct-20201.2K
ref_vcagt.c22-Oct-20201.2K
ref_vcale.c22-Oct-20201.2K
ref_vcalt.c22-Oct-20201.2K
ref_vceq.c22-Oct-20202K
ref_vcge.c22-Oct-20201.2K
ref_vcgt.c22-Oct-20201.2K
ref_vcle.c22-Oct-20201.2K
ref_vcls.c22-Oct-20203.7K
ref_vclt.c22-Oct-20201.2K
ref_vclz.c22-Oct-20205.1K
ref_vcnt.c22-Oct-20203K
ref_vcombine.c22-Oct-20203.8K
ref_vcreate.c22-Oct-20204.2K
ref_vcvt.c22-Oct-20209K
ref_vdup.c22-Oct-20203.6K
ref_vdup_lane.c22-Oct-20202.9K
ref_veor.c22-Oct-20201.2K
ref_vext.c22-Oct-20203.7K
ref_vget_high.c22-Oct-20202.8K
ref_vget_lane.c22-Oct-20203.8K
ref_vget_low.c22-Oct-20202.8K
ref_vhadd.c22-Oct-20201.2K
ref_vhsub.c22-Oct-20201.2K
ref_vld1.c22-Oct-20202.3K
ref_vld1_dup.c22-Oct-20202.4K
ref_vld1_lane.c22-Oct-20204.7K
ref_vldX.c22-Oct-20208K
ref_vldX_dup.c22-Oct-20207K
ref_vldX_lane.c22-Oct-20209.5K
ref_vmax.c22-Oct-20205.2K
ref_vmin.c22-Oct-20201.2K
ref_vmla.c22-Oct-20204.9K
ref_vmla_lane.c22-Oct-20204.3K
ref_vmla_n.c22-Oct-20203.9K
ref_vmlal.c22-Oct-20204K
ref_vmlal_lane.c22-Oct-20203.5K
ref_vmlal_n.c22-Oct-20203K
ref_vmls.c22-Oct-20201.2K
ref_vmls_lane.c22-Oct-20201.2K
ref_vmls_n.c22-Oct-20201.2K
ref_vmlsl.c22-Oct-20201.2K
ref_vmlsl_lane.c22-Oct-20201.2K
ref_vmlsl_n.c22-Oct-20201.2K
ref_vmovl.c22-Oct-20202K
ref_vmovn.c22-Oct-20202K
ref_vmul.c22-Oct-20204.5K
ref_vmul_lane.c22-Oct-20203.7K
ref_vmul_n.c22-Oct-20203.1K
ref_vmull.c22-Oct-20202.8K
ref_vmull_lane.c22-Oct-20202.9K
ref_vmull_n.c22-Oct-20202.8K
ref_vmvn.c22-Oct-20204.3K
ref_vneg.c22-Oct-20201.8K
ref_vorn.c22-Oct-20201.2K
ref_vorr.c22-Oct-20201.2K
ref_vpadal.c22-Oct-20205.1K
ref_vpadd.c22-Oct-20203.2K
ref_vpaddl.c22-Oct-20204.1K
ref_vpmax.c22-Oct-20201.2K
ref_vpmin.c22-Oct-20201.2K
ref_vqabs.c22-Oct-20202.6K
ref_vqadd.c22-Oct-20205.6K
ref_vqdmlal.c22-Oct-20203.3K
ref_vqdmlal_lane.c22-Oct-20203.7K
ref_vqdmlal_n.c22-Oct-20203.1K
ref_vqdmlsl.c22-Oct-20201.2K
ref_vqdmlsl_lane.c22-Oct-20201.2K
ref_vqdmlsl_n.c22-Oct-20201.2K
ref_vqdmulh.c22-Oct-20203.9K
ref_vqdmulh_lane.c22-Oct-20204.1K
ref_vqdmulh_n.c22-Oct-20203.8K
ref_vqdmull.c22-Oct-20203.2K
ref_vqdmull_lane.c22-Oct-20203.6K
ref_vqdmull_n.c22-Oct-20203.5K
ref_vqmovn.c22-Oct-20204K
ref_vqmovun.c22-Oct-20203.2K
ref_vqneg.c22-Oct-20202.6K
ref_vqrdmulh.c22-Oct-20204.7K
ref_vqrdmulh_lane.c22-Oct-20204.7K
ref_vqrdmulh_n.c22-Oct-20204.3K
ref_vqrshl.c22-Oct-202011.6K
ref_vqrshrn_n.c22-Oct-20204.8K
ref_vqrshrun_n.c22-Oct-20205K
ref_vqshl.c22-Oct-20209.1K
ref_vqshl_n.c22-Oct-20204.7K
ref_vqshlu_n.c22-Oct-20205.8K
ref_vqshrn_n.c22-Oct-20204.8K
ref_vqshrun_n.c22-Oct-20204K
ref_vqsub.c22-Oct-20205.7K
ref_vraddhn.c22-Oct-20201.2K
ref_vrecpe.c22-Oct-20204.8K
ref_vrecps.c22-Oct-20203.9K
ref_vreinterpret.c22-Oct-202018.1K
ref_vrev.c22-Oct-20203.4K
ref_vrhadd.c22-Oct-20201.2K
ref_vrshl.c22-Oct-20208K
ref_vrshr_n.c22-Oct-20208.1K
ref_vrshrn_n.c22-Oct-20204.2K
ref_vrsqrte.c22-Oct-20204.7K
ref_vrsqrts.c22-Oct-20203.9K
ref_vrsra_n.c22-Oct-20208.6K
ref_vrsubhn.c22-Oct-20201.2K
ref_vset_lane.c22-Oct-20203.1K
ref_vshl.c22-Oct-20203.4K
ref_vshl_n.c22-Oct-20202.5K
ref_vshll_n.c22-Oct-20202.2K
ref_vshr_n.c22-Oct-20202.6K
ref_vshrn_n.c22-Oct-20202.8K
ref_vsli_n.c22-Oct-20203.5K
ref_vsra_n.c22-Oct-20203.3K
ref_vsri_n.c22-Oct-20203.6K
ref_vst1_lane.c22-Oct-20203.1K
ref_vstX_lane.c22-Oct-20209.4K
ref_vsub.c22-Oct-20201.9K
ref_vsubhn.c22-Oct-20201.2K
ref_vsubl.c22-Oct-20201.2K
ref_vsubw.c22-Oct-20201.2K
ref_vsXi_n.c22-Oct-20204K
ref_vtbX.c22-Oct-20206.8K
ref_vtrn.c22-Oct-20201.2K
ref_vtst.c22-Oct-20203.5K
ref_vuzp.c22-Oct-20206K
ref_vzip.c22-Oct-20201.2K
retarget.c22-Oct-20201.1K
scatter.scat22-Oct-2020817
stm-arm-neon-ref.h22-Oct-202029K

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