aboutsummaryrefslogtreecommitdiff
path: root/src/main/stanza/primop.stanza
diff options
context:
space:
mode:
authorazidar2015-07-31 17:13:25 -0700
committerazidar2015-07-31 17:13:25 -0700
commit612d59c10fa2a320305144e7aeaae7040aba4ed7 (patch)
treea09beea722ec64f9cba4ececd9c7b94560af30e6 /src/main/stanza/primop.stanza
parentba55a55ee07805d28995b535beb5a19bd4a99c5c (diff)
Allow bit operations on sints
Diffstat (limited to 'src/main/stanza/primop.stanza')
-rw-r--r--src/main/stanza/primop.stanza14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/stanza/primop.stanza b/src/main/stanza/primop.stanza
index f7eb6d04..0d304d32 100644
--- a/src/main/stanza/primop.stanza
+++ b/src/main/stanza/primop.stanza
@@ -50,14 +50,14 @@ public defn lower-and-type-primop (e:DoPrim) -> DoPrim :
SHIFT-LEFT-OP : DoPrim(SHIFT-LEFT-OP,args(e),consts(e),of-type(args(e)[0]))
SHIFT-RIGHT-OP : DoPrim(SHIFT-RIGHT-OP,args(e),consts(e),of-type(args(e)[0]))
CONVERT-OP : DoPrim(CONVERT-OP,args(e),consts(e),s())
- NEG-OP : DoPrim(NEG-OP,args(e),consts(e),u())
- BIT-NOT-OP : DoPrim(op(e),args(e),consts(e),u())
- BIT-AND-OP : DoPrim(op(e),args(e),consts(e),u())
- BIT-OR-OP : DoPrim(op(e),args(e),consts(e),u())
- BIT-XOR-OP : DoPrim(op(e),args(e),consts(e),u())
+ NEG-OP : DoPrim(NEG-OP,args(e),consts(e),s())
+ BIT-NOT-OP : DoPrim(op(e),args(e),consts(e),of-type(args(e)[0])))
+ BIT-AND-OP : DoPrim(op(e),args(e),consts(e),of-type(args(e)[0])))
+ BIT-OR-OP : DoPrim(op(e),args(e),consts(e),of-type(args(e)[0])))
+ BIT-XOR-OP : DoPrim(op(e),args(e),consts(e),of-type(args(e)[0])))
+ BIT-SELECT-OP : DoPrim(op(e),args(e),consts(e),of-type(args(e)[0])))
+ BITS-SELECT-OP : DoPrim(op(e),args(e),consts(e),of-type(args(e)[0])))
CONCAT-OP : DoPrim(op(e),args(e),consts(e),u())
- BIT-SELECT-OP : DoPrim(op(e),args(e),consts(e),u())
- BITS-SELECT-OP : DoPrim(op(e),args(e),consts(e),u())
BIT-AND-REDUCE-OP : DoPrim(op(e),args(e),consts(e),u())
BIT-OR-REDUCE-OP : DoPrim(op(e),args(e),consts(e),u())
BIT-XOR-REDUCE-OP : DoPrim(op(e),args(e),consts(e),u())