summaryrefslogtreecommitdiff
path: root/src/ir
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir')
-rw-r--r--src/ir/abstract.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ir/abstract.h b/src/ir/abstract.h
index 3071e6dd6..687412455 100644
--- a/src/ir/abstract.h
+++ b/src/ir/abstract.h
@@ -44,6 +44,7 @@ enum Op {
Or,
Xor,
// Relational
+ EqZ,
Eq,
Ne,
LtS,
@@ -62,10 +63,22 @@ enum Op {
inline UnaryOp getUnary(Type type, Op op) {
switch (type.getSingle()) {
case Type::i32: {
- return InvalidUnary;
+ switch (op) {
+ case EqZ:
+ return EqZInt32;
+ default:
+ return InvalidUnary;
+ }
+ break;
}
case Type::i64: {
- return InvalidUnary;
+ switch (op) {
+ case EqZ:
+ return EqZInt64;
+ default:
+ return InvalidUnary;
+ }
+ break;
}
case Type::f32: {
switch (op) {