3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * Author: Sergei Poselenov <sposelenov@emcraft.com>
7 * SPDX-License-Identifier: GPL-2.0+
15 * This test checks the arithmetic logic unit (ALU) of CPU.
16 * It tests independently various groups of instructions using
17 * run-time modification of the code to reduce the memory footprint.
18 * For more details refer to post/cpu/ *.c files.
25 #if CONFIG_POST & CONFIG_SYS_POST_FPU
29 extern int fpu_status (void);
30 extern void fpu_enable (void);
31 extern void fpu_disable (void);
33 extern int fpu_post_test_math1 (void);
34 extern int fpu_post_test_math2 (void);
35 extern int fpu_post_test_math3 (void);
36 extern int fpu_post_test_math4 (void);
37 extern int fpu_post_test_math5 (void);
38 extern int fpu_post_test_math6 (void);
39 extern int fpu_post_test_math7 (void);
41 int fpu_post_test (int flags)
43 int fpu = fpu_status ();
53 ret = fpu_post_test_math1 ();
55 ret = fpu_post_test_math2 ();
57 ret = fpu_post_test_math3 ();
59 ret = fpu_post_test_math4 ();
61 ret = fpu_post_test_math5 ();
63 ret = fpu_post_test_math6 ();
65 ret = fpu_post_test_math7 ();
75 #endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */