• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

Android.bpD23-Nov-20236.2 KiB242231

Init.sD23-Nov-202311.7 KiB260190

InitCache.sD23-Nov-20232.3 KiB5339

LICENSED23-Nov-2023204 119

METADATAD23-Nov-2023468 1816

MODULE_LICENSE_MITD23-Nov-20230

MakefileD23-Nov-20236.8 KiB167102

Makefile.gccD23-Nov-20235.2 KiB12568

OWNERSD23-Nov-2023232 76

READMED23-Nov-20232.3 KiB6143

armscript.incD23-Nov-2023307 1510

compute_ref.axfD23-Nov-20233.4 MiB

compute_ref.cD23-Nov-20239.3 KiB371323

compute_ref.gccarmD23-Nov-20234.3 MiB

compute_ref.gccarm-rvctD23-Nov-20234.6 MiB

compute_ref_data.cD23-Nov-202321.6 KiB567499

expected_input4gcc-nofp16.txtD23-Nov-2023546.4 KiB7,0886,817

expected_input4gcc.txtD23-Nov-2023587.7 KiB7,6287,357

license.htmlD23-Nov-202325.4 KiB457455

ref-rvct-all.txtD23-Nov-2023571.9 KiB8,8348,425

ref-rvct-neon-nofp16.txtD23-Nov-2023461.7 KiB6,9256,548

ref-rvct-neon.txtD23-Nov-2023528.2 KiB7,9017,504

ref_dsp.cD23-Nov-202313 KiB422322

ref_dspfns.cD23-Nov-202348.7 KiB1,5031,165

ref_integer.cD23-Nov-20238.5 KiB291210

ref_v_binary_op.cD23-Nov-20232.9 KiB8944

ref_v_binary_sat_op.cD23-Nov-20233.9 KiB11164

ref_v_comp_f_op.cD23-Nov-20233 KiB9044

ref_v_comp_op.cD23-Nov-20237.8 KiB222153

ref_v_unary_op.cD23-Nov-20233 KiB9246

ref_v_unary_sat_op.cD23-Nov-20233.3 KiB9751

ref_vaba.cD23-Nov-20234.3 KiB12683

ref_vabal.cD23-Nov-20234.3 KiB12979

ref_vabd.cD23-Nov-20234.5 KiB13487

ref_vabdl.cD23-Nov-20233.1 KiB9452

ref_vabs.cD23-Nov-20231.8 KiB5520

ref_vadd.cD23-Nov-20231.9 KiB6124

ref_vaddhn.cD23-Nov-20233.2 KiB9553

ref_vaddl.cD23-Nov-20233.5 KiB10560

ref_vaddw.cD23-Nov-20233.5 KiB10560

ref_vand.cD23-Nov-20231.2 KiB303

ref_vbic.cD23-Nov-20231.2 KiB303

ref_vbsl.cD23-Nov-20233.8 KiB10562

ref_vcage.cD23-Nov-20231.2 KiB303

ref_vcagt.cD23-Nov-20231.2 KiB303

ref_vcale.cD23-Nov-20231.2 KiB303

ref_vcalt.cD23-Nov-20231.2 KiB303

ref_vceq.cD23-Nov-20232 KiB6425

ref_vcge.cD23-Nov-20231.2 KiB303

ref_vcgt.cD23-Nov-20231.2 KiB303

ref_vcle.cD23-Nov-20231.2 KiB303

ref_vcls.cD23-Nov-20233.7 KiB10858

ref_vclt.cD23-Nov-20231.2 KiB303

ref_vclz.cD23-Nov-20235.1 KiB14394

ref_vcnt.cD23-Nov-20233 KiB8945

ref_vcombine.cD23-Nov-20233.8 KiB10161

ref_vcreate.cD23-Nov-20234.2 KiB12076

ref_vcvt.cD23-Nov-20239 KiB237151

ref_vdup.cD23-Nov-20233.6 KiB11774

ref_vdup_lane.cD23-Nov-20232.9 KiB8242

ref_veor.cD23-Nov-20231.2 KiB303

ref_vext.cD23-Nov-20233.7 KiB10968

ref_vget_high.cD23-Nov-20232.8 KiB7741

ref_vget_lane.cD23-Nov-20233.8 KiB11064

ref_vget_low.cD23-Nov-20232.8 KiB7741

ref_vhadd.cD23-Nov-20231.2 KiB324

ref_vhsub.cD23-Nov-20231.2 KiB324

ref_vld1.cD23-Nov-20232.3 KiB6527

ref_vld1_dup.cD23-Nov-20232.4 KiB7031

ref_vld1_lane.cD23-Nov-20234.7 KiB13188

ref_vldX.cD23-Nov-20238 KiB222163

ref_vldX_dup.cD23-Nov-20237 KiB188133

ref_vldX_lane.cD23-Nov-20239.5 KiB244180

ref_vmax.cD23-Nov-20235.2 KiB15498

ref_vmin.cD23-Nov-20231.2 KiB303

ref_vmla.cD23-Nov-20234.9 KiB145101

ref_vmla_lane.cD23-Nov-20234.3 KiB12681

ref_vmla_n.cD23-Nov-20233.9 KiB11370

ref_vmlal.cD23-Nov-20234 KiB12073

ref_vmlal_lane.cD23-Nov-20233.5 KiB10258

ref_vmlal_n.cD23-Nov-20233 KiB9348

ref_vmls.cD23-Nov-20231.2 KiB303

ref_vmls_lane.cD23-Nov-20231.2 KiB303

ref_vmls_n.cD23-Nov-20231.2 KiB303

ref_vmlsl.cD23-Nov-20231.2 KiB303

ref_vmlsl_lane.cD23-Nov-20231.2 KiB303

ref_vmlsl_n.cD23-Nov-20231.2 KiB303

ref_vmovl.cD23-Nov-20232 KiB6125

ref_vmovn.cD23-Nov-20232 KiB6125

ref_vmul.cD23-Nov-20234.5 KiB13593

ref_vmul_lane.cD23-Nov-20233.7 KiB10662

ref_vmul_n.cD23-Nov-20233.1 KiB9251

ref_vmull.cD23-Nov-20232.8 KiB8245

ref_vmull_lane.cD23-Nov-20232.9 KiB8542

ref_vmull_n.cD23-Nov-20232.8 KiB8342

ref_vmvn.cD23-Nov-20234.3 KiB12177

ref_vneg.cD23-Nov-20231.8 KiB5520

ref_vorn.cD23-Nov-20231.2 KiB303

ref_vorr.cD23-Nov-20231.2 KiB303

ref_vpadal.cD23-Nov-20235.1 KiB14194

ref_vpadd.cD23-Nov-20233.2 KiB9753

ref_vpaddl.cD23-Nov-20234.1 KiB11470

ref_vpmax.cD23-Nov-20231.2 KiB303

ref_vpmin.cD23-Nov-20231.2 KiB303

ref_vqabs.cD23-Nov-20232.6 KiB7435

ref_vqadd.cD23-Nov-20235.6 KiB158103

ref_vqdmlal.cD23-Nov-20233.3 KiB9955

ref_vqdmlal_lane.cD23-Nov-20233.7 KiB10663

ref_vqdmlal_n.cD23-Nov-20233.1 KiB9349

ref_vqdmlsl.cD23-Nov-20231.2 KiB303

ref_vqdmlsl_lane.cD23-Nov-20231.2 KiB303

ref_vqdmlsl_n.cD23-Nov-20231.2 KiB303

ref_vqdmulh.cD23-Nov-20233.9 KiB11667

ref_vqdmulh_lane.cD23-Nov-20234.1 KiB11763

ref_vqdmulh_n.cD23-Nov-20233.8 KiB11162

ref_vqdmull.cD23-Nov-20233.2 KiB9450

ref_vqdmull_lane.cD23-Nov-20233.6 KiB11058

ref_vqdmull_n.cD23-Nov-20233.5 KiB10555

ref_vqmovn.cD23-Nov-20234 KiB11564

ref_vqmovun.cD23-Nov-20233.2 KiB9647

ref_vqneg.cD23-Nov-20232.6 KiB7435

ref_vqrdmulh.cD23-Nov-20234.7 KiB13683

ref_vqrdmulh_lane.cD23-Nov-20234.7 KiB13576

ref_vqrdmulh_n.cD23-Nov-20234.3 KiB12573

ref_vqrshl.cD23-Nov-202311.6 KiB304212

ref_vqrshrn_n.cD23-Nov-20234.8 KiB13577

ref_vqrshrun_n.cD23-Nov-20235 KiB14376

ref_vqshl.cD23-Nov-20239.1 KiB242163

ref_vqshl_n.cD23-Nov-20234.7 KiB13383

ref_vqshlu_n.cD23-Nov-20235.8 KiB15896

ref_vqshrn_n.cD23-Nov-20234.8 KiB13677

ref_vqshrun_n.cD23-Nov-20234 KiB11759

ref_vqsub.cD23-Nov-20235.7 KiB164106

ref_vraddhn.cD23-Nov-20231.2 KiB303

ref_vrecpe.cD23-Nov-20234.8 KiB14477

ref_vrecps.cD23-Nov-20233.9 KiB12159

ref_vreinterpret.cD23-Nov-202318.1 KiB399303

ref_vrev.cD23-Nov-20233.4 KiB10763

ref_vrhadd.cD23-Nov-20231.2 KiB324

ref_vrshl.cD23-Nov-20238 KiB221142

ref_vrshr_n.cD23-Nov-20238.1 KiB218153

ref_vrshrn_n.cD23-Nov-20234.2 KiB12067

ref_vrsqrte.cD23-Nov-20234.7 KiB14475

ref_vrsqrts.cD23-Nov-20233.9 KiB12159

ref_vrsra_n.cD23-Nov-20238.6 KiB239172

ref_vrsubhn.cD23-Nov-20231.2 KiB303

ref_vsXi_n.cD23-Nov-20234 KiB11772

ref_vset_lane.cD23-Nov-20233.1 KiB8344

ref_vshl.cD23-Nov-20233.4 KiB9950

ref_vshl_n.cD23-Nov-20232.5 KiB7636

ref_vshll_n.cD23-Nov-20232.2 KiB6526

ref_vshr_n.cD23-Nov-20232.6 KiB7736

ref_vshrn_n.cD23-Nov-20232.8 KiB8241

ref_vsli_n.cD23-Nov-20233.5 KiB9754

ref_vsra_n.cD23-Nov-20233.3 KiB9854

ref_vsri_n.cD23-Nov-20233.6 KiB9754

ref_vst1_lane.cD23-Nov-20233.1 KiB8650

ref_vstX_lane.cD23-Nov-20239.4 KiB244180

ref_vsub.cD23-Nov-20231.9 KiB6124

ref_vsubhn.cD23-Nov-20231.2 KiB303

ref_vsubl.cD23-Nov-20231.2 KiB303

ref_vsubw.cD23-Nov-20231.2 KiB303

ref_vtbX.cD23-Nov-20236.8 KiB228143

ref_vtrn.cD23-Nov-20231.2 KiB303

ref_vtst.cD23-Nov-20233.5 KiB10051

ref_vuzp.cD23-Nov-20236 KiB172115

ref_vzip.cD23-Nov-20231.2 KiB303

retarget.cD23-Nov-20231.1 KiB4722

scatter.scatD23-Nov-2023817 3020

stm-arm-neon-ref.hD23-Nov-202329 KiB816672

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