Lines Matching defs:sym1
354 struct symbol *sym1, *sym2;
366 sym1 = tmp->left.sym;
368 sym1 = e1->left.sym;
375 if (sym1 != sym2)
377 if (sym1->type != S_BOOLEAN && sym1->type != S_TRISTATE)
379 if (sym1->type == S_TRISTATE) {
384 return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_no);
390 return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_mod);
396 return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_yes);
399 if (sym1->type == S_BOOLEAN && sym1 == sym2) {
418 struct symbol *sym1, *sym2;
430 sym1 = tmp->left.sym;
432 sym1 = e1->left.sym;
439 if (sym1 != sym2)
441 if (sym1->type != S_BOOLEAN && sym1->type != S_TRISTATE)
447 return expr_alloc_comp(E_EQUAL, sym1, &symbol_yes);
452 return expr_alloc_symbol(sym1);
457 return expr_alloc_comp(E_EQUAL, sym1, &symbol_yes);
459 if (sym1->type == S_TRISTATE) {
464 return sym2 != e2->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
471 return sym2 != e1->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
478 return expr_alloc_comp(E_EQUAL, sym1, &symbol_mod);
484 return expr_alloc_comp(E_EQUAL, sym1, &symbol_no);
490 return expr_alloc_comp(E_EQUAL, sym1, &symbol_yes);