Add consteval support for $_ANDNOT_ and $_ORNOT_
authorClifford Wolf <clifford@clifford.at>
Tue, 22 Aug 2017 11:04:05 +0000 (13:04 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 22 Aug 2017 11:04:05 +0000 (13:04 +0200)
kernel/celltypes.h

index b8a4cc74c5778425fc8c7ff4db8c2368f9cd955e..9f775cde76ddf80f544a790c0601d08886b74dbb 100644 (file)
@@ -322,6 +322,10 @@ struct CellTypes
                        return const_xor(arg1, arg2, false, false, 1);
                if (type == "$_XNOR_")
                        return const_xnor(arg1, arg2, false, false, 1);
+               if (type == "$_ANDNOT_")
+                       return const_and(arg1, eval_not(arg2), false, false, 1);
+               if (type == "$_ORNOT_")
+                       return const_or(arg1, eval_not(arg2), false, false, 1);
 
                log_abort();
        }