Home | History | Annotate | Download | only in tests

Lines Matching refs:feature

16 // - 0 if the machine provides the asked-for feature and the cpu
18 // - 1 the machine does not provide the asked-for feature or the
20 // - 2 if the asked-for feature isn't recognised (this will be the case for
21 // any feature if run on a non-s390x machine).
27 // s390x_features <feature> [<machine-model>]
192 static int go(char *feature, char *cpu)
201 if (strcmp(feature, "s390x-zarch") == 0 ) {
203 } else if (strcmp(feature, "s390x-n3") == 0 ) {
205 } else if (strcmp(feature, "s390x-stfle") == 0 ) {
207 } else if (strcmp(feature, "s390x-ldisp") == 0 ) {
209 } else if (strcmp(feature, "s390x-eimm") == 0 ) {
211 } else if (strcmp(feature, "s390x-stckf") == 0 ) {
213 } else if (strcmp(feature, "s390x-genins") == 0 ) {
215 } else if (strcmp(feature, "s390x-exrl") == 0 ) {
218 return 2; // Unrecognised feature.
276 static int go(char *feature, char *cpu)
278 return 2; // Feature not recognised (non-s390x machine!)
292 fprintf( stderr, "usage: s390x_features <feature> [<machine-model>]\n" );