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

..10-Aug-201812 KiB

Android.mk10-Aug-20183.2 KiB

armscript.inc10-Aug-2018307

compute_ref.axf10-Aug-20183.4 MiB

compute_ref.c10-Aug-20189.3 KiB

compute_ref.gccarm10-Aug-20184.3 MiB

compute_ref.gccarm-rvct10-Aug-20184.6 MiB

compute_ref_data.c10-Aug-201821.6 KiB

expected_input4gcc-nofp16.txt10-Aug-2018546.4 KiB

expected_input4gcc.txt10-Aug-2018587.7 KiB

Init.s10-Aug-201811.7 KiB

InitCache.s10-Aug-20182.3 KiB

LICENSE10-Aug-2018204

license.html10-Aug-201825.4 KiB

Makefile10-Aug-20186.8 KiB

Makefile.gcc10-Aug-20185.2 KiB

METADATA10-Aug-2018573

MODULE_LICENSE_MIT10-Aug-20180

NOTICE10-Aug-2018204

README10-Aug-20182.3 KiB

ref-rvct-all.txt10-Aug-2018571.9 KiB

ref-rvct-neon-nofp16.txt10-Aug-2018461.7 KiB

ref-rvct-neon.txt10-Aug-2018528.2 KiB

ref_dsp.c10-Aug-201813 KiB

ref_dspfns.c10-Aug-201848.7 KiB

ref_integer.c10-Aug-20188.5 KiB

ref_v_binary_op.c10-Aug-20182.9 KiB

ref_v_binary_sat_op.c10-Aug-20183.9 KiB

ref_v_comp_f_op.c10-Aug-20183 KiB

ref_v_comp_op.c10-Aug-20187.8 KiB

ref_v_unary_op.c10-Aug-20183 KiB

ref_v_unary_sat_op.c10-Aug-20183.3 KiB

ref_vaba.c10-Aug-20184.3 KiB

ref_vabal.c10-Aug-20184.3 KiB

ref_vabd.c10-Aug-20184.5 KiB

ref_vabdl.c10-Aug-20183.1 KiB

ref_vabs.c10-Aug-20181.8 KiB

ref_vadd.c10-Aug-20181.9 KiB

ref_vaddhn.c10-Aug-20183.2 KiB

ref_vaddl.c10-Aug-20183.5 KiB

ref_vaddw.c10-Aug-20183.5 KiB

ref_vand.c10-Aug-20181.2 KiB

ref_vbic.c10-Aug-20181.2 KiB

ref_vbsl.c10-Aug-20183.8 KiB

ref_vcage.c10-Aug-20181.2 KiB

ref_vcagt.c10-Aug-20181.2 KiB

ref_vcale.c10-Aug-20181.2 KiB

ref_vcalt.c10-Aug-20181.2 KiB

ref_vceq.c10-Aug-20182 KiB

ref_vcge.c10-Aug-20181.2 KiB

ref_vcgt.c10-Aug-20181.2 KiB

ref_vcle.c10-Aug-20181.2 KiB

ref_vcls.c10-Aug-20183.7 KiB

ref_vclt.c10-Aug-20181.2 KiB

ref_vclz.c10-Aug-20185.1 KiB

ref_vcnt.c10-Aug-20183 KiB

ref_vcombine.c10-Aug-20183.8 KiB

ref_vcreate.c10-Aug-20184.2 KiB

ref_vcvt.c10-Aug-20189 KiB

ref_vdup.c10-Aug-20183.6 KiB

ref_vdup_lane.c10-Aug-20182.9 KiB

ref_veor.c10-Aug-20181.2 KiB

ref_vext.c10-Aug-20183.7 KiB

ref_vget_high.c10-Aug-20182.8 KiB

ref_vget_lane.c10-Aug-20183.8 KiB

ref_vget_low.c10-Aug-20182.8 KiB

ref_vhadd.c10-Aug-20181.2 KiB

ref_vhsub.c10-Aug-20181.2 KiB

ref_vld1.c10-Aug-20182.3 KiB

ref_vld1_dup.c10-Aug-20182.4 KiB

ref_vld1_lane.c10-Aug-20184.7 KiB

ref_vldX.c10-Aug-20188 KiB

ref_vldX_dup.c10-Aug-20187 KiB

ref_vldX_lane.c10-Aug-20189.5 KiB

ref_vmax.c10-Aug-20185.2 KiB

ref_vmin.c10-Aug-20181.2 KiB

ref_vmla.c10-Aug-20184.9 KiB

ref_vmla_lane.c10-Aug-20184.3 KiB

ref_vmla_n.c10-Aug-20183.9 KiB

ref_vmlal.c10-Aug-20184 KiB

ref_vmlal_lane.c10-Aug-20183.5 KiB

ref_vmlal_n.c10-Aug-20183 KiB

ref_vmls.c10-Aug-20181.2 KiB

ref_vmls_lane.c10-Aug-20181.2 KiB

ref_vmls_n.c10-Aug-20181.2 KiB

ref_vmlsl.c10-Aug-20181.2 KiB

ref_vmlsl_lane.c10-Aug-20181.2 KiB

ref_vmlsl_n.c10-Aug-20181.2 KiB

ref_vmovl.c10-Aug-20182 KiB

ref_vmovn.c10-Aug-20182 KiB

ref_vmul.c10-Aug-20184.5 KiB

ref_vmul_lane.c10-Aug-20183.7 KiB

ref_vmul_n.c10-Aug-20183.1 KiB

ref_vmull.c10-Aug-20182.8 KiB

ref_vmull_lane.c10-Aug-20182.9 KiB

ref_vmull_n.c10-Aug-20182.8 KiB

ref_vmvn.c10-Aug-20184.3 KiB

ref_vneg.c10-Aug-20181.8 KiB

ref_vorn.c10-Aug-20181.2 KiB

ref_vorr.c10-Aug-20181.2 KiB

ref_vpadal.c10-Aug-20185.1 KiB

ref_vpadd.c10-Aug-20183.2 KiB

ref_vpaddl.c10-Aug-20184.1 KiB

ref_vpmax.c10-Aug-20181.2 KiB

ref_vpmin.c10-Aug-20181.2 KiB

ref_vqabs.c10-Aug-20182.6 KiB

ref_vqadd.c10-Aug-20185.6 KiB

ref_vqdmlal.c10-Aug-20183.3 KiB

ref_vqdmlal_lane.c10-Aug-20183.7 KiB

ref_vqdmlal_n.c10-Aug-20183.1 KiB

ref_vqdmlsl.c10-Aug-20181.2 KiB

ref_vqdmlsl_lane.c10-Aug-20181.2 KiB

ref_vqdmlsl_n.c10-Aug-20181.2 KiB

ref_vqdmulh.c10-Aug-20183.9 KiB

ref_vqdmulh_lane.c10-Aug-20184.1 KiB

ref_vqdmulh_n.c10-Aug-20183.8 KiB

ref_vqdmull.c10-Aug-20183.2 KiB

ref_vqdmull_lane.c10-Aug-20183.6 KiB

ref_vqdmull_n.c10-Aug-20183.5 KiB

ref_vqmovn.c10-Aug-20184 KiB

ref_vqmovun.c10-Aug-20183.2 KiB

ref_vqneg.c10-Aug-20182.6 KiB

ref_vqrdmulh.c10-Aug-20184.7 KiB

ref_vqrdmulh_lane.c10-Aug-20184.7 KiB

ref_vqrdmulh_n.c10-Aug-20184.3 KiB

ref_vqrshl.c10-Aug-201811.6 KiB

ref_vqrshrn_n.c10-Aug-20184.8 KiB

ref_vqrshrun_n.c10-Aug-20185 KiB

ref_vqshl.c10-Aug-20189.1 KiB

ref_vqshl_n.c10-Aug-20184.7 KiB

ref_vqshlu_n.c10-Aug-20185.8 KiB

ref_vqshrn_n.c10-Aug-20184.8 KiB

ref_vqshrun_n.c10-Aug-20184 KiB

ref_vqsub.c10-Aug-20185.7 KiB

ref_vraddhn.c10-Aug-20181.2 KiB

ref_vrecpe.c10-Aug-20184.8 KiB

ref_vrecps.c10-Aug-20183.9 KiB

ref_vreinterpret.c10-Aug-201818.1 KiB

ref_vrev.c10-Aug-20183.4 KiB

ref_vrhadd.c10-Aug-20181.2 KiB

ref_vrshl.c10-Aug-20188 KiB

ref_vrshr_n.c10-Aug-20188.1 KiB

ref_vrshrn_n.c10-Aug-20184.2 KiB

ref_vrsqrte.c10-Aug-20184.7 KiB

ref_vrsqrts.c10-Aug-20183.9 KiB

ref_vrsra_n.c10-Aug-20188.6 KiB

ref_vrsubhn.c10-Aug-20181.2 KiB

ref_vset_lane.c10-Aug-20183.1 KiB

ref_vshl.c10-Aug-20183.4 KiB

ref_vshl_n.c10-Aug-20182.5 KiB

ref_vshll_n.c10-Aug-20182.2 KiB

ref_vshr_n.c10-Aug-20182.6 KiB

ref_vshrn_n.c10-Aug-20182.8 KiB

ref_vsli_n.c10-Aug-20183.5 KiB

ref_vsra_n.c10-Aug-20183.3 KiB

ref_vsri_n.c10-Aug-20183.6 KiB

ref_vst1_lane.c10-Aug-20183.1 KiB

ref_vstX_lane.c10-Aug-20189.4 KiB

ref_vsub.c10-Aug-20181.9 KiB

ref_vsubhn.c10-Aug-20181.2 KiB

ref_vsubl.c10-Aug-20181.2 KiB

ref_vsubw.c10-Aug-20181.2 KiB

ref_vsXi_n.c10-Aug-20184 KiB

ref_vtbX.c10-Aug-20186.8 KiB

ref_vtrn.c10-Aug-20181.2 KiB

ref_vtst.c10-Aug-20183.5 KiB

ref_vuzp.c10-Aug-20186 KiB

ref_vzip.c10-Aug-20181.2 KiB

retarget.c10-Aug-20181.1 KiB

scatter.scat10-Aug-2018817

stm-arm-neon-ref.h10-Aug-201829 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