From: Adam Megacz Date: Sun, 23 Nov 2008 23:06:38 +0000 (+0000) Subject: add test 3018 (note that you need a new fleet jarball for this) X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e151c9c66ec6f75ae8f5f4d754a01d9f25580491;p=fleet.git add test 3018 (note that you need a new fleet jarball for this) --- diff --git a/testCode/com/sun/vlsi/chips/marina/test/MarinaTest.java b/testCode/com/sun/vlsi/chips/marina/test/MarinaTest.java index 09036e9..aef4aee 100644 --- a/testCode/com/sun/vlsi/chips/marina/test/MarinaTest.java +++ b/testCode/com/sun/vlsi/chips/marina/test/MarinaTest.java @@ -28,6 +28,8 @@ import edu.berkeley.fleet.api.Instruction; import edu.berkeley.fleet.api.Predicate; import edu.berkeley.fleet.api.Instruction.Set.SetDest; import edu.berkeley.fleet.api.Instruction.Set.SetSource; +import edu.berkeley.fleet.marina.MarinaFleet; +import edu.berkeley.fleet.marina.MarinaPath; /** * Tests for Marina @@ -127,6 +129,22 @@ public class MarinaTest { Infrastructure.exit(2); } } + public static void fatalIfBitVectorsDoNotMatch(BitVector bv1, BitVector bv2) { + // FIXME: better error reporting needed here + + fatal(bv1.getNumBits()!=bv2.getNumBits(), "lengths do not match"); + + boolean mismatch = false; + String err = ""; + for(int i=0; i