Make and dependent upon LSB only

This commit is contained in:
ZipCPU 2018-11-03 13:39:32 -04:00
parent d86ea6badd
commit 39f891aebc
1 changed files with 8 additions and 2 deletions

View File

@ -1874,10 +1874,16 @@ skip_dynamic_range_lvalue_expansion:;
newNode = new AstNode(AST_NE, past, present);
else if (str == "\\$rose")
newNode = new AstNode(AST_LOGIC_AND, new AstNode(AST_LOGIC_NOT, past), present);
newNode = new AstNode(AST_LOGIC_AND,
new AstNode(AST_LOGIC_NOT,
new AstNode(AST_BIT_AND, past, mkconst_int(1,false))),
new AstNode(AST_BIT_AND, present, mkconst_int(1,false)));
else if (str == "\\$fell")
newNode = new AstNode(AST_LOGIC_AND, past, new AstNode(AST_LOGIC_NOT, present));
newNode = new AstNode(AST_LOGIC_AND,
new AstNode(AST_BIT_AND, past, mkconst_int(1,false)),
new AstNode(AST_LOGIC_NOT,
new AstNode(AST_BIT_AND, present, mkconst_int(1,false))));
else
log_abort();