Home | History | Annotate | Download | only in tests

Lines Matching full:arch

13 // - 0 if the machine matches the asked-for arch
14 // - 1 if it doesn't match but does match the name of another arch
15 // - 2 if it doesn't match the name of any arch
35 static Bool go(char* arch)
38 if ( 0 == strcmp( arch, "x86" ) ) return True;
41 if ( 0 == strcmp( arch, "x86" ) ) return True;
42 if ( 0 == strcmp( arch, "amd64" ) ) return True;
45 if ( 0 == strcmp( arch, "ppc32" ) ) return True;
48 if ( 0 == strcmp( arch, "ppc64" ) ) return True;
49 if ( 0 == strcmp( arch, "ppc32" ) ) return True;
52 if ( 0 == strcmp( arch, "s390x" ) ) return True;
55 if ( 0 == strcmp( arch, "arm" ) ) return True;
71 fprintf( stderr, "usage: arch_test <arch-type>\n" );
79 return 1; // Didn't match, but named another arch.