1 // SPDX-License-Identifier: GPL-2.0+
14 * This test checks the arithmetic logic unit (ALU) of CPU.
15 * It tests independently various groups of instructions using
16 * run-time modification of the code to reduce the memory footprint.
17 * For more details refer to post/cpu/ *.c files.
24 #if CFG_POST & CONFIG_SYS_POST_FPU
28 extern int fpu_status (void);
29 extern void fpu_enable (void);
30 extern void fpu_disable (void);
32 extern int fpu_post_test_math1 (void);
33 extern int fpu_post_test_math2 (void);
34 extern int fpu_post_test_math3 (void);
35 extern int fpu_post_test_math4 (void);
36 extern int fpu_post_test_math5 (void);
37 extern int fpu_post_test_math6 (void);
38 extern int fpu_post_test_math7 (void);
40 int fpu_post_test (int flags)
42 int fpu = fpu_status ();
52 ret = fpu_post_test_math1 ();
54 ret = fpu_post_test_math2 ();
56 ret = fpu_post_test_math3 ();
58 ret = fpu_post_test_math4 ();
60 ret = fpu_post_test_math5 ();
62 ret = fpu_post_test_math6 ();
64 ret = fpu_post_test_math7 ();
74 #endif /* CFG_POST & CONFIG_SYS_POST_FPU */