Home | History | Annotate | Download | only in tests

Lines Matching defs:cpu

47 static void test(struct cpu_type const * cpu)
52 name = op_get_cpu_name(cpu->type);
53 if (cpu->type != CPU_NO_GOOD && strcmp(cpu->name, name)) {
54 printf("for %d expect %s found %s\n", cpu->type, cpu->name,
58 if (cpu->type == CPU_NO_GOOD && strcmp("invalid cpu type", name)) {
59 printf("for %d expect %s found %s\n", cpu->type,
60 "invalid cpu type", name);
64 type = op_get_cpu_number(cpu->name);
65 if (type != cpu->type) {
66 printf("for %s expect %d found %d\n", cpu->name, cpu->type,
75 struct cpu_type * cpu;
76 for (cpu = cpu_str; cpu->name; ++cpu)
77 test(cpu);