Date:2011-09-18 15:14:12 (8 years 2 months ago)
Author:Werner Almesberger
Commit:c02c02903d5c91d5bd7a1a7faf982b4ae60afec2
Message:m1/perf/: a bunch of bug fixes all over the place

Files: m1/perf/eval.pl (2 diffs)
m1/perf/main.c (1 diff)
m1/perf/sched.c (1 diff)

Change Details

m1/perf/eval.pl
11#!/usr/bin/perl
22
3#while (<>) {
4# last if /per-vertex PFPU fragment/;
5#}
3while (<>) {
4    last if /per-vertex PFPU fragment/;
5}
66
77$i = 0;
88while (<>) {
...... 
1717    $a = $reg{$a} if defined $reg{$a};
1818    $b = $reg{$b} if defined $reg{$b};
1919
20    if ($op eq "IF") {
21        $expr = "(IF $reg{002} $a $b)";
20    if ($op eq "IF<R2>") {
21        $expr = "(IF ".$reg{"R002"}." $a $b)";
2222    } elsif ($op eq "VECTOUT") {
2323        $res = "$a\n$b\n";
2424    } elsif (defined $b) {
m1/perf/main.c
4545        perror(name);
4646        exit(1);
4747    }
48    got = fread(buf, sizeof(buf)-1, 1, file);
48    got = fread(buf, 1, sizeof(buf)-1, file);
4949    if (got < 0) {
5050        perror(name);
5151        exit(1);
m1/perf/sched.c
360360        list_init(&insn->dependants);
361361        switch (insn->arity) {
362362        case 3:
363            add_data_ref(insn, &insn->opb, FPVM_REG_IFB);
363            add_data_ref(insn, &insn->cond, FPVM_REG_IFB);
364364            /* fall through */
365365        case 2:
366366            add_data_ref(insn, &insn->opb, frag->code[i].opb);

Archive Download the corresponding diff file

Branches:
master



interactive