diff options
| author | jackbackrack | 2015-04-24 14:47:04 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-04-24 14:47:04 -0700 |
| commit | 52de683632b6216094e2e36360b2954e39da673d (patch) | |
| tree | 3fad01410bb62ddb6d5c99c7a2f3e9edc813679f /src/main | |
| parent | 4e7a7785c5a644897520bbebfd9c21430cbcbedf (diff) | |
flo backend consts get widths and read enable goes to one
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/stanza/passes.stanza | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza index 924780d8..8697c867 100644 --- a/src/main/stanza/passes.stanza +++ b/src/main/stanza/passes.stanza @@ -1938,7 +1938,7 @@ defn emit! (e:Expression,top:Symbol) : (e:Register) : emit-all(["reg'" prim-width(type(e)) " 1 " value(e)], top) ;; enable(e) (e:ReadPort) : - emit-all(["rd'" prim-width(type(e)) " " enable(e) " " mem(e) " " index(e)], top) + emit-all(["rd'" prim-width(type(e)) " " "1" " " mem(e) " " index(e)], top) ;; enable(e) (e:DoPrim) : if cmp-op?(op(e)) : emit-all([flo-op-name(op(e)) "'" prim-width(type(args(e)[0]))], top) @@ -1963,8 +1963,7 @@ defn emit! (e:Expression,top:Symbol) : print(" ") emit!(arg, top) for const in consts(e) do : - print(" ") - print(const) + print-all([" " const "'" sizeof(const)]) (e) : error("SHOULDN'T EMIT THIS") ;; print-all(["EMIT(" e ")"]) ;(e) : emit-all(["mov'" prim-width(type(e)) " " e], top) ;TODO, not sure which one is right |
