diff options
| author | azidar | 2015-05-04 10:54:28 -0700 |
|---|---|---|
| committer | azidar | 2015-05-04 10:54:28 -0700 |
| commit | 20cd6b3b5830b8ac65434fd39d937f607c20d70d (patch) | |
| tree | fbfa85273288457dbe3e8710f89739c2a59348cc /src | |
| parent | 2006604530fb8fd214fe4e8e182bedacd71b49b3 (diff) | |
Fixed change where type of mux-ss was incorrect
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/stanza/primop.stanza | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/stanza/primop.stanza b/src/main/stanza/primop.stanza index 34dd0392..9d88a019 100644 --- a/src/main/stanza/primop.stanza +++ b/src/main/stanza/primop.stanza @@ -181,7 +181,7 @@ public defn lower-and-type-primop (e:DoPrim) -> DoPrim : NEQUAL-UU-OP : DoPrim(op(e),args(e),consts(e),u()) NEQUAL-SS-OP : DoPrim(op(e),args(e),consts(e),u()) MUX-OP : - DoPrim{_,args(e),consts(e),of-type(args(e)[0])} $ + DoPrim{_,args(e),consts(e),of-type(args(e)[1])} $ match(type(args(e)[1]),type(args(e)[2])) : (t1:UIntType, t2:UIntType) : MUX-UU-OP (t1:SIntType, t2:SIntType) : MUX-SS-OP @@ -189,7 +189,7 @@ public defn lower-and-type-primop (e:DoPrim) -> DoPrim : MUX-UU-OP : DoPrim(op(e),args(e),consts(e),u()) MUX-SS-OP : DoPrim(op(e),args(e),consts(e),s()) PAD-OP : - DoPrim{_,args(e),consts(e),of-type(args(e)[0])} $ + DoPrim{_,args(e),consts(e),of-type(args(e)[1])} $ match(type(args(e)[0])) : (t1:UIntType) : PAD-U-OP (t1:SIntType) : PAD-S-OP |
