fix parser bug
authoradam <adam@megacz.com>
Sun, 7 Sep 2008 03:11:12 +0000 (04:11 +0100)
committeradam <adam@megacz.com>
Sun, 7 Sep 2008 03:11:12 +0000 (04:11 +0100)
src/edu/berkeley/fleet/assembler/Parser.java

index 6eebcc2..5cd4781 100644 (file)
@@ -377,9 +377,7 @@ public class Parser {
                     if ("[!a]".equals(ttt.head())) predicate = NotFlagA;
                     if ("[!b]".equals(ttt.head())) predicate = NotFlagB;
                     if ("[!c]".equals(ttt.head())) predicate = NotFlagC;
-                    // FIXME: test case for this
                     if ("[*]".equals(ttt.head()))  predicate = IgnoreOLC;
-                    // FIXME: test case for this
                     if ("[olc=0]".equals(ttt.head()))  predicate = OLCZero;
                     if ("[Rq]".equals(ttt.head()))  looping = true;
                 }
@@ -409,8 +407,7 @@ public class Parser {
                     cb.add(new Set(dock, looping, predicate, SetDest.OuterLoopCounter, SetSource.Decrement));
                     continue;
                 } else if ("nop".equals(tt.head())) {
-                    // FIXME: test case for "torpedoable nop"
-                    if (tt.child(0).size() > 0 && "[T]".equals(tt.child(0).head()))  interruptible = true;
+                    if (tt.size() > 0 && "[T]".equals(tt.child(0).head())) interruptible = true;
                     cb.add(new Move(dock, looping, predicate, interruptible, null, false, false, false, false, false, false));
                 } else if ("shift".equals(tt.head())) {
                     cb.add(new Shift(dock, looping, predicate,