aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/risc.fir
diff options
context:
space:
mode:
authorazidar2015-04-17 10:59:32 -0700
committerazidar2015-04-17 10:59:32 -0700
commit01fa067fe52081463222110b957053734e357f79 (patch)
treee54db5f543c4c9a84e6b120468c4008a4edac8d0 /test/passes/jacktest/risc.fir
parent06ff7f7dddcb479d9d4d775a55cbb18d873b35b9 (diff)
Fixed bug in primop lowering during type inference. Added reduce instructions and renamed concat -> cat, equal -> eq, and added neq and neg
Diffstat (limited to 'test/passes/jacktest/risc.fir')
-rw-r--r--test/passes/jacktest/risc.fir10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/passes/jacktest/risc.fir b/test/passes/jacktest/risc.fir
index d8197112..bf3eaf01 100644
--- a/test/passes/jacktest/risc.fir
+++ b/test/passes/jacktest/risc.fir
@@ -22,12 +22,12 @@ circuit Risc :
node rai = bits(inst, 15, 8)
node rbi = bits(inst, 7, 0)
node T_52 = UInt(0, 1)
- node T_53 = equal(rai, T_52)
+ node T_53 = eq(rai, T_52)
node T_54 = UInt(0, 1)
accessor T_55 = file[rai]
node ra = mux(T_53, T_54, T_55)
node T_56 = UInt(0, 1)
- node T_57 = equal(rbi, T_56)
+ node T_57 = eq(rbi, T_56)
node T_58 = UInt(0, 1)
accessor T_59 = file[rbi]
node rb = mux(T_57, T_58, T_59)
@@ -45,18 +45,18 @@ circuit Risc :
node T_64 = UInt(0, 1)
pc := T_64
else :
- node T_65 = equal(add_op, op)
+ node T_65 = eq(add_op, op)
when T_65 :
node T_66 = add-wrap(ra, rb)
rc := T_66
- node T_67 = equal(imm_op, op)
+ node T_67 = eq(imm_op, op)
when T_67 :
node T_68 = shl(rai, 8)
node T_69 = bit-or(T_68, rbi)
rc := T_69
out := rc
node T_70 = UInt(255, 8)
- node T_71 = equal(rci, T_70)
+ node T_71 = eq(rci, T_70)
when T_71 :
node T_72 = UInt(1, 1)
valid := T_72