xref: /aosp_15_r20/external/ltp/testcases/misc/math/float/README (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Workercpio -idvB <livr.cpio
2*49cdfc7eSAndroid Build Coastguard Worker
3*49cdfc7eSAndroid Build Coastguard Workerthere are 5 sets of datafiles [trigo, power, iperb, exp_log, bessel]
4*49cdfc7eSAndroid Build Coastguard Worker
5*49cdfc7eSAndroid Build Coastguard Workerthere are 5 testcases [float_trigo, float_power, float_iperb, float_exp_log,
6*49cdfc7eSAndroid Build Coastguard Workerfloat_bessel]
7*49cdfc7eSAndroid Build Coastguard Worker
8*49cdfc7eSAndroid Build Coastguard Workerhow to do it
9*49cdfc7eSAndroid Build Coastguard Worker============
10*49cdfc7eSAndroid Build Coastguard Worker1)
11*49cdfc7eSAndroid Build Coastguard Worker
12*49cdfc7eSAndroid Build Coastguard Workerfirst of all you have to generate datafiles, following is the trigo set of
13*49cdfc7eSAndroid Build Coastguard Workerdatafiles way of doing:
14*49cdfc7eSAndroid Build Coastguard Worker/* there is a readme file within the directory if necessary */
15*49cdfc7eSAndroid Build Coastguard Worker
16*49cdfc7eSAndroid Build Coastguard Worker$ cd trigo
17*49cdfc7eSAndroid Build Coastguard Worker
18*49cdfc7eSAndroid Build Coastguard Worker/* compile */
19*49cdfc7eSAndroid Build Coastguard Worker$ make all
20*49cdfc7eSAndroid Build Coastguard Worker
21*49cdfc7eSAndroid Build Coastguard Worker/* start the trigo datafiles generator */
22*49cdfc7eSAndroid Build Coastguard Worker$ gentrigo
23*49cdfc7eSAndroid Build Coastguard Worker
24*49cdfc7eSAndroid Build Coastguard Worker/* check that make install will install datafiles where they've to be placed */
25*49cdfc7eSAndroid Build Coastguard Worker/* check that repository is existing */
26*49cdfc7eSAndroid Build Coastguard Worker/* see Makefile file */
27*49cdfc7eSAndroid Build Coastguard Worker$ make install
28*49cdfc7eSAndroid Build Coastguard Worker
29*49cdfc7eSAndroid Build Coastguard Worker2) do the same with the others (iperb, exp_log, power & bessel)
30*49cdfc7eSAndroid Build Coastguard Worker
31*49cdfc7eSAndroid Build Coastguard Worker...........................................................................
32*49cdfc7eSAndroid Build Coastguard Worker3) compiling & installing testcases
33*49cdfc7eSAndroid Build Coastguard Worker
34*49cdfc7eSAndroid Build Coastguard Worker$ cd ..
35*49cdfc7eSAndroid Build Coastguard Worker$ make all
36*49cdfc7eSAndroid Build Coastguard Worker$ make install
37*49cdfc7eSAndroid Build Coastguard Worker..........................................................................
38*49cdfc7eSAndroid Build Coastguard Worker/* starting the testcase */
39*49cdfc7eSAndroid Build Coastguard Worker$ cd ../bin
40*49cdfc7eSAndroid Build Coastguard Worker$ float_trigo
41*49cdfc7eSAndroid Build Coastguard Worker$ float_power
42*49cdfc7eSAndroid Build Coastguard Worker$ float_exp_log
43*49cdfc7eSAndroid Build Coastguard Worker$ float_iperb
44*49cdfc7eSAndroid Build Coastguard Worker$ float_bessel
45*49cdfc7eSAndroid Build Coastguard Worker$ echo $?
46*49cdfc7eSAndroid Build Coastguard Worker0
47*49cdfc7eSAndroid Build Coastguard Worker$
48*49cdfc7eSAndroid Build Coastguard Worker
49*49cdfc7eSAndroid Build Coastguard WorkerNotes:
50*49cdfc7eSAndroid Build Coastguard Worker------
51*49cdfc7eSAndroid Build Coastguard Worker1)
52*49cdfc7eSAndroid Build Coastguard Worker/* datafiles are supposed to be placed to the same directory as executables */
53*49cdfc7eSAndroid Build Coastguard Worker/* this can be changed giving the absolute path of the directory to the
54*49cdfc7eSAndroid Build Coastguard Worker testcase ex:$ float_trigo -D /home/linux/livr */
55*49cdfc7eSAndroid Build Coastguard Worker
56*49cdfc7eSAndroid Build Coastguard Worker2) number of threads is initialized to 20 per function
57*49cdfc7eSAndroid Build Coastguard Worker
58*49cdfc7eSAndroid Build Coastguard Worker3) number of loops is initialized to 500 (ability to view cpus loading)
59*49cdfc7eSAndroid Build Coastguard Worker
60*49cdfc7eSAndroid Build Coastguard Worker4) these tests have been started on ia64 and ia32 architectures.
61*49cdfc7eSAndroid Build Coastguard Worker
62*49cdfc7eSAndroid Build Coastguard Worker
63*49cdfc7eSAndroid Build Coastguard Worker
64