|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| Android.bp | D | 03-May-2024 | 6.2 KiB | 242 | 231 |
| Init.s | D | 03-May-2024 | 11.7 KiB | 260 | 190 |
| InitCache.s | D | 03-May-2024 | 2.3 KiB | 53 | 39 |
| LICENSE | D | 03-May-2024 | 204 | 11 | 9 |
| METADATA | D | 03-May-2024 | 468 | 18 | 16 |
| MODULE_LICENSE_MIT | D | 03-May-2024 | 0 | | |
| Makefile | D | 03-May-2024 | 6.8 KiB | 167 | 102 |
| Makefile.gcc | D | 03-May-2024 | 5.2 KiB | 125 | 68 |
| OWNERS | D | 03-May-2024 | 232 | 7 | 6 |
| README | D | 03-May-2024 | 2.3 KiB | 61 | 43 |
| armscript.inc | D | 03-May-2024 | 307 | 15 | 10 |
| compute_ref.axf | D | 03-May-2024 | 3.4 MiB | | |
| compute_ref.c | D | 03-May-2024 | 9.3 KiB | 371 | 323 |
| compute_ref.gccarm | D | 03-May-2024 | 4.3 MiB | | |
| compute_ref.gccarm-rvct | D | 03-May-2024 | 4.6 MiB | | |
| compute_ref_data.c | D | 03-May-2024 | 21.6 KiB | 567 | 499 |
| expected_input4gcc-nofp16.txt | D | 03-May-2024 | 546.4 KiB | 7,088 | 6,817 |
| expected_input4gcc.txt | D | 03-May-2024 | 587.7 KiB | 7,628 | 7,357 |
| license.html | D | 03-May-2024 | 25.4 KiB | 457 | 455 |
| ref-rvct-all.txt | D | 03-May-2024 | 571.9 KiB | 8,834 | 8,425 |
| ref-rvct-neon-nofp16.txt | D | 03-May-2024 | 461.7 KiB | 6,925 | 6,548 |
| ref-rvct-neon.txt | D | 03-May-2024 | 528.2 KiB | 7,901 | 7,504 |
| ref_dsp.c | D | 03-May-2024 | 13 KiB | 422 | 322 |
| ref_dspfns.c | D | 03-May-2024 | 48.7 KiB | 1,503 | 1,165 |
| ref_integer.c | D | 03-May-2024 | 8.5 KiB | 291 | 210 |
| ref_v_binary_op.c | D | 03-May-2024 | 2.9 KiB | 89 | 44 |
| ref_v_binary_sat_op.c | D | 03-May-2024 | 3.9 KiB | 111 | 64 |
| ref_v_comp_f_op.c | D | 03-May-2024 | 3 KiB | 90 | 44 |
| ref_v_comp_op.c | D | 03-May-2024 | 7.8 KiB | 222 | 153 |
| ref_v_unary_op.c | D | 03-May-2024 | 3 KiB | 92 | 46 |
| ref_v_unary_sat_op.c | D | 03-May-2024 | 3.3 KiB | 97 | 51 |
| ref_vaba.c | D | 03-May-2024 | 4.3 KiB | 126 | 83 |
| ref_vabal.c | D | 03-May-2024 | 4.3 KiB | 129 | 79 |
| ref_vabd.c | D | 03-May-2024 | 4.5 KiB | 134 | 87 |
| ref_vabdl.c | D | 03-May-2024 | 3.1 KiB | 94 | 52 |
| ref_vabs.c | D | 03-May-2024 | 1.8 KiB | 55 | 20 |
| ref_vadd.c | D | 03-May-2024 | 1.9 KiB | 61 | 24 |
| ref_vaddhn.c | D | 03-May-2024 | 3.2 KiB | 95 | 53 |
| ref_vaddl.c | D | 03-May-2024 | 3.5 KiB | 105 | 60 |
| ref_vaddw.c | D | 03-May-2024 | 3.5 KiB | 105 | 60 |
| ref_vand.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vbic.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vbsl.c | D | 03-May-2024 | 3.8 KiB | 105 | 62 |
| ref_vcage.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vcagt.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vcale.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vcalt.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vceq.c | D | 03-May-2024 | 2 KiB | 64 | 25 |
| ref_vcge.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vcgt.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vcle.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vcls.c | D | 03-May-2024 | 3.7 KiB | 108 | 58 |
| ref_vclt.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vclz.c | D | 03-May-2024 | 5.1 KiB | 143 | 94 |
| ref_vcnt.c | D | 03-May-2024 | 3 KiB | 89 | 45 |
| ref_vcombine.c | D | 03-May-2024 | 3.8 KiB | 101 | 61 |
| ref_vcreate.c | D | 03-May-2024 | 4.2 KiB | 120 | 76 |
| ref_vcvt.c | D | 03-May-2024 | 9 KiB | 237 | 151 |
| ref_vdup.c | D | 03-May-2024 | 3.6 KiB | 117 | 74 |
| ref_vdup_lane.c | D | 03-May-2024 | 2.9 KiB | 82 | 42 |
| ref_veor.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vext.c | D | 03-May-2024 | 3.7 KiB | 109 | 68 |
| ref_vget_high.c | D | 03-May-2024 | 2.8 KiB | 77 | 41 |
| ref_vget_lane.c | D | 03-May-2024 | 3.8 KiB | 110 | 64 |
| ref_vget_low.c | D | 03-May-2024 | 2.8 KiB | 77 | 41 |
| ref_vhadd.c | D | 03-May-2024 | 1.2 KiB | 32 | 4 |
| ref_vhsub.c | D | 03-May-2024 | 1.2 KiB | 32 | 4 |
| ref_vld1.c | D | 03-May-2024 | 2.3 KiB | 65 | 27 |
| ref_vld1_dup.c | D | 03-May-2024 | 2.4 KiB | 70 | 31 |
| ref_vld1_lane.c | D | 03-May-2024 | 4.7 KiB | 131 | 88 |
| ref_vldX.c | D | 03-May-2024 | 8 KiB | 222 | 163 |
| ref_vldX_dup.c | D | 03-May-2024 | 7 KiB | 188 | 133 |
| ref_vldX_lane.c | D | 03-May-2024 | 9.5 KiB | 244 | 180 |
| ref_vmax.c | D | 03-May-2024 | 5.2 KiB | 154 | 98 |
| ref_vmin.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vmla.c | D | 03-May-2024 | 4.9 KiB | 145 | 101 |
| ref_vmla_lane.c | D | 03-May-2024 | 4.3 KiB | 126 | 81 |
| ref_vmla_n.c | D | 03-May-2024 | 3.9 KiB | 113 | 70 |
| ref_vmlal.c | D | 03-May-2024 | 4 KiB | 120 | 73 |
| ref_vmlal_lane.c | D | 03-May-2024 | 3.5 KiB | 102 | 58 |
| ref_vmlal_n.c | D | 03-May-2024 | 3 KiB | 93 | 48 |
| ref_vmls.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vmls_lane.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vmls_n.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vmlsl.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vmlsl_lane.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vmlsl_n.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vmovl.c | D | 03-May-2024 | 2 KiB | 61 | 25 |
| ref_vmovn.c | D | 03-May-2024 | 2 KiB | 61 | 25 |
| ref_vmul.c | D | 03-May-2024 | 4.5 KiB | 135 | 93 |
| ref_vmul_lane.c | D | 03-May-2024 | 3.7 KiB | 106 | 62 |
| ref_vmul_n.c | D | 03-May-2024 | 3.1 KiB | 92 | 51 |
| ref_vmull.c | D | 03-May-2024 | 2.8 KiB | 82 | 45 |
| ref_vmull_lane.c | D | 03-May-2024 | 2.9 KiB | 85 | 42 |
| ref_vmull_n.c | D | 03-May-2024 | 2.8 KiB | 83 | 42 |
| ref_vmvn.c | D | 03-May-2024 | 4.3 KiB | 121 | 77 |
| ref_vneg.c | D | 03-May-2024 | 1.8 KiB | 55 | 20 |
| ref_vorn.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vorr.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vpadal.c | D | 03-May-2024 | 5.1 KiB | 141 | 94 |
| ref_vpadd.c | D | 03-May-2024 | 3.2 KiB | 97 | 53 |
| ref_vpaddl.c | D | 03-May-2024 | 4.1 KiB | 114 | 70 |
| ref_vpmax.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vpmin.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vqabs.c | D | 03-May-2024 | 2.6 KiB | 74 | 35 |
| ref_vqadd.c | D | 03-May-2024 | 5.6 KiB | 158 | 103 |
| ref_vqdmlal.c | D | 03-May-2024 | 3.3 KiB | 99 | 55 |
| ref_vqdmlal_lane.c | D | 03-May-2024 | 3.7 KiB | 106 | 63 |
| ref_vqdmlal_n.c | D | 03-May-2024 | 3.1 KiB | 93 | 49 |
| ref_vqdmlsl.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vqdmlsl_lane.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vqdmlsl_n.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vqdmulh.c | D | 03-May-2024 | 3.9 KiB | 116 | 67 |
| ref_vqdmulh_lane.c | D | 03-May-2024 | 4.1 KiB | 117 | 63 |
| ref_vqdmulh_n.c | D | 03-May-2024 | 3.8 KiB | 111 | 62 |
| ref_vqdmull.c | D | 03-May-2024 | 3.2 KiB | 94 | 50 |
| ref_vqdmull_lane.c | D | 03-May-2024 | 3.6 KiB | 110 | 58 |
| ref_vqdmull_n.c | D | 03-May-2024 | 3.5 KiB | 105 | 55 |
| ref_vqmovn.c | D | 03-May-2024 | 4 KiB | 115 | 64 |
| ref_vqmovun.c | D | 03-May-2024 | 3.2 KiB | 96 | 47 |
| ref_vqneg.c | D | 03-May-2024 | 2.6 KiB | 74 | 35 |
| ref_vqrdmulh.c | D | 03-May-2024 | 4.7 KiB | 136 | 83 |
| ref_vqrdmulh_lane.c | D | 03-May-2024 | 4.7 KiB | 135 | 76 |
| ref_vqrdmulh_n.c | D | 03-May-2024 | 4.3 KiB | 125 | 73 |
| ref_vqrshl.c | D | 03-May-2024 | 11.6 KiB | 304 | 212 |
| ref_vqrshrn_n.c | D | 03-May-2024 | 4.8 KiB | 135 | 77 |
| ref_vqrshrun_n.c | D | 03-May-2024 | 5 KiB | 143 | 76 |
| ref_vqshl.c | D | 03-May-2024 | 9.1 KiB | 242 | 163 |
| ref_vqshl_n.c | D | 03-May-2024 | 4.7 KiB | 133 | 83 |
| ref_vqshlu_n.c | D | 03-May-2024 | 5.8 KiB | 158 | 96 |
| ref_vqshrn_n.c | D | 03-May-2024 | 4.8 KiB | 136 | 77 |
| ref_vqshrun_n.c | D | 03-May-2024 | 4 KiB | 117 | 59 |
| ref_vqsub.c | D | 03-May-2024 | 5.7 KiB | 164 | 106 |
| ref_vraddhn.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vrecpe.c | D | 03-May-2024 | 4.8 KiB | 144 | 77 |
| ref_vrecps.c | D | 03-May-2024 | 3.9 KiB | 121 | 59 |
| ref_vreinterpret.c | D | 03-May-2024 | 18.1 KiB | 399 | 303 |
| ref_vrev.c | D | 03-May-2024 | 3.4 KiB | 107 | 63 |
| ref_vrhadd.c | D | 03-May-2024 | 1.2 KiB | 32 | 4 |
| ref_vrshl.c | D | 03-May-2024 | 8 KiB | 221 | 142 |
| ref_vrshr_n.c | D | 03-May-2024 | 8.1 KiB | 218 | 153 |
| ref_vrshrn_n.c | D | 03-May-2024 | 4.2 KiB | 120 | 67 |
| ref_vrsqrte.c | D | 03-May-2024 | 4.7 KiB | 144 | 75 |
| ref_vrsqrts.c | D | 03-May-2024 | 3.9 KiB | 121 | 59 |
| ref_vrsra_n.c | D | 03-May-2024 | 8.6 KiB | 239 | 172 |
| ref_vrsubhn.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vsXi_n.c | D | 03-May-2024 | 4 KiB | 117 | 72 |
| ref_vset_lane.c | D | 03-May-2024 | 3.1 KiB | 83 | 44 |
| ref_vshl.c | D | 03-May-2024 | 3.4 KiB | 99 | 50 |
| ref_vshl_n.c | D | 03-May-2024 | 2.5 KiB | 76 | 36 |
| ref_vshll_n.c | D | 03-May-2024 | 2.2 KiB | 65 | 26 |
| ref_vshr_n.c | D | 03-May-2024 | 2.6 KiB | 77 | 36 |
| ref_vshrn_n.c | D | 03-May-2024 | 2.8 KiB | 82 | 41 |
| ref_vsli_n.c | D | 03-May-2024 | 3.5 KiB | 97 | 54 |
| ref_vsra_n.c | D | 03-May-2024 | 3.3 KiB | 98 | 54 |
| ref_vsri_n.c | D | 03-May-2024 | 3.6 KiB | 97 | 54 |
| ref_vst1_lane.c | D | 03-May-2024 | 3.1 KiB | 86 | 50 |
| ref_vstX_lane.c | D | 03-May-2024 | 9.4 KiB | 244 | 180 |
| ref_vsub.c | D | 03-May-2024 | 1.9 KiB | 61 | 24 |
| ref_vsubhn.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vsubl.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vsubw.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vtbX.c | D | 03-May-2024 | 6.8 KiB | 228 | 143 |
| ref_vtrn.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| ref_vtst.c | D | 03-May-2024 | 3.5 KiB | 100 | 51 |
| ref_vuzp.c | D | 03-May-2024 | 6 KiB | 172 | 115 |
| ref_vzip.c | D | 03-May-2024 | 1.2 KiB | 30 | 3 |
| retarget.c | D | 03-May-2024 | 1.1 KiB | 47 | 22 |
| scatter.scat | D | 03-May-2024 | 817 | 30 | 20 |
| stm-arm-neon-ref.h | D | 03-May-2024 | 29 KiB | 816 | 672 |
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