Skip to content

Commit

Permalink
Missing language.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Aug 24, 2024
1 parent e7a21b4 commit edeb291
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
16 changes: 8 additions & 8 deletions src/retest/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,16 +1270,10 @@ main(int argc, char *argv[])
break;

case 'l':
if (strcmp(optarg, "vm") == 0) {
impl = IMPL_INTERPRET;
if (strcmp(optarg, "asm") == 0) {
impl = IMPL_VMASM;
} else if (strcmp(optarg, "c") == 0) {
impl = IMPL_C;
} else if (strcmp(optarg, "asm") == 0) {
impl = IMPL_VMASM;
} else if (strcmp(optarg, "vmc") == 0) {
impl = IMPL_VMC;
} else if (strcmp(optarg, "vmops") == 0) {
impl = IMPL_VMOPS;
} else if (strcmp(optarg, "go") == 0) {
impl = IMPL_GO;
} else if (strcmp(optarg, "goasm") == 0) {
Expand All @@ -1288,6 +1282,12 @@ main(int argc, char *argv[])
impl = IMPL_LLVM;
} else if (strcmp(optarg, "rust") == 0) {
impl = IMPL_RUST;
} else if (strcmp(optarg, "vm") == 0) {
impl = IMPL_INTERPRET;
} else if (strcmp(optarg, "vmc") == 0) {
impl = IMPL_VMC;
} else if (strcmp(optarg, "vmops") == 0) {
impl = IMPL_VMOPS;
} else {
fprintf(stderr, "unknown argument to -l: %s\n", optarg);
usage();
Expand Down
14 changes: 10 additions & 4 deletions src/retest/reperf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,18 +1154,24 @@ main(int argc, char *argv[])
break;

case 'l':
if (strcmp(optarg, "vm") == 0) {
impl = IMPL_INTERPRET;
if (strcmp(optarg, "asm") == 0) {
impl = IMPL_VMASM;
} else if (strcmp(optarg, "c") == 0) {
impl = IMPL_C;
} else if (strcmp(optarg, "go") == 0) {
impl = IMPL_GO;
} else if (strcmp(optarg, "goasm") == 0) {
impl = IMPL_GOASM;
} else if (strcmp(optarg, "llvm") == 0) {
impl = IMPL_LLVM;
} else if (strcmp(optarg, "rust") == 0) {
impl = IMPL_RUST;
} else if (strcmp(optarg, "asm") == 0) {
impl = IMPL_VMASM;
} else if (strcmp(optarg, "vm") == 0) {
impl = IMPL_INTERPRET;
} else if (strcmp(optarg, "vmc") == 0) {
impl = IMPL_VMC;
} else if (strcmp(optarg, "vmops") == 0) {
impl = IMPL_VMOPS;
} else {
fprintf(stderr, "unknown argument to -l: %s\n", optarg);
usage();
Expand Down
8 changes: 4 additions & 4 deletions src/retest/runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ enum error_type {

enum implementation {
IMPL_C,
IMPL_RUST,
IMPL_LLVM,
IMPL_GO,
IMPL_GOASM,
IMPL_VMC,
IMPL_VMASM,
IMPL_INTERPRET,
IMPL_LLVM,
IMPL_RUST,
IMPL_VMASM,
IMPL_VMC,
IMPL_VMOPS,
};

Expand Down

0 comments on commit edeb291

Please sign in to comment.