1 // SPDX-License-Identifier: GPL-2.0+
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
12 * This test checks the arithmetic logic unit (ALU) of CPU.
13 * It tests independently various groups of instructions using
14 * run-time modification of the code to reduce the memory footprint.
15 * For more details refer to post/cpu/ *.c files.
22 #if CONFIG_POST & CONFIG_SYS_POST_CPU
24 extern int cpu_post_test_cmp (void);
25 extern int cpu_post_test_cmpi (void);
26 extern int cpu_post_test_two (void);
27 extern int cpu_post_test_twox (void);
28 extern int cpu_post_test_three (void);
29 extern int cpu_post_test_threex (void);
30 extern int cpu_post_test_threei (void);
31 extern int cpu_post_test_andi (void);
32 extern int cpu_post_test_srawi (void);
33 extern int cpu_post_test_rlwnm (void);
34 extern int cpu_post_test_rlwinm (void);
35 extern int cpu_post_test_rlwimi (void);
36 extern int cpu_post_test_store (void);
37 extern int cpu_post_test_load (void);
38 extern int cpu_post_test_cr (void);
39 extern int cpu_post_test_b (void);
40 extern int cpu_post_test_multi (void);
41 extern int cpu_post_test_string (void);
42 extern int cpu_post_test_complex (void);
44 ulong cpu_post_makecr (long v)
58 int cpu_post_test (int flags)
60 int ic = icache_status ();
68 ret = cpu_post_test_cmp ();
70 ret = cpu_post_test_cmpi ();
72 ret = cpu_post_test_two ();
74 ret = cpu_post_test_twox ();
77 ret = cpu_post_test_three ();
79 ret = cpu_post_test_threex ();
81 ret = cpu_post_test_threei ();
83 ret = cpu_post_test_andi ();
86 ret = cpu_post_test_srawi ();
88 ret = cpu_post_test_rlwnm ();
90 ret = cpu_post_test_rlwinm ();
92 ret = cpu_post_test_rlwimi ();
95 ret = cpu_post_test_store ();
97 ret = cpu_post_test_load ();
99 ret = cpu_post_test_cr ();
101 ret = cpu_post_test_b ();
104 ret = cpu_post_test_multi ();
107 ret = cpu_post_test_string ();
109 ret = cpu_post_test_complex ();
120 #endif /* CONFIG_POST & CONFIG_SYS_POST_CPU */