Home
last modified time | relevance | path

Searched refs:cond1 (Results 1 – 25 of 44) sorted by relevance

12

/netbsd-src/tests/usr.bin/xlint/lint1/
H A Dexpr_precedence.c57 conditional_associativity(_Bool cond1, _Bool cond2, int a, int b, int c) in conditional_associativity() argument
60 var = cond1 ? cond2 ? a : b : c; in conditional_associativity()
61 var = cond1 ? (cond2 ? a : b) : c; in conditional_associativity()
64 var = cond1 ? cond2 ? a, b : (b, a) : c; in conditional_associativity()
66 var = cond1 ? a : cond2 ? b : c; in conditional_associativity()
71 var = cond1 ? a : (cond2 ? b : c); in conditional_associativity()
76 var = (cond1 ? a : cond2) ? b : c; in conditional_associativity()
/netbsd-src/tests/usr.bin/indent/
H A Dlsym_question.c11 const char *multi = cond1 ? "cond1" : cond2 ? "cond2" : cond3 ? "cond3" : "";
62 const char *multiple_branches = cond1 in function()
68 const char *condensed = cond1 ? "condensed 1" in function()
/netbsd-src/tests/libexec/ld.elf_so/
H A Dh_thread_local_dtor.c36 static pthread_cond_t cond1 = PTHREAD_COND_INITIALIZER; variable
46 pthread_cond_broadcast(&cond1); in thread_helper()
75 pthread_cond_wait(&cond1, &mutex); in main()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dread-md.c144 md_reader::join_c_conditions (const char *cond1, const char *cond2) in join_c_conditions() argument
149 if (cond1 == 0 || cond1[0] == 0) in join_c_conditions()
153 return cond1; in join_c_conditions()
155 if (strcmp (cond1, cond2) == 0) in join_c_conditions()
156 return cond1; in join_c_conditions()
158 result = concat ("(", cond1, ") && (", cond2, ")", NULL); in join_c_conditions()
160 obstack_ptr_grow (&m_joined_conditions_obstack, cond1); in join_c_conditions()
H A Dcfgcleanup.c252 rtx set1, set2, cond1, cond2; in thread_jump() local
294 cond1 = XEXP (SET_SRC (set1), 0); in thread_jump()
297 code1 = reversed_comparison_code (cond1, BB_END (e->src)); in thread_jump()
299 code1 = GET_CODE (cond1); in thread_jump()
312 if (!rtx_equal_p (XEXP (cond1, 0), XEXP (cond2, 0)) in thread_jump()
313 || !rtx_equal_p (XEXP (cond1, 1), XEXP (cond2, 1))) in thread_jump()
318 if (modified_in_p (cond1, BB_END (e->src))) in thread_jump()
1635 rtx set1, set2, cond1, cond2; in outgoing_edges_match() local
1678 cond1 = XEXP (SET_SRC (set1), 0); in outgoing_edges_match()
1680 code1 = GET_CODE (cond1); in outgoing_edges_match()
[all …]
H A Dread-md.h206 const char *join_c_conditions (const char *cond1, const char *cond2);
H A Dsched-deps.c622 conditions_mutex_p (const_rtx cond1, const_rtx cond2, bool rev1, bool rev2) in conditions_mutex_p() argument
624 if (COMPARISON_P (cond1) in conditions_mutex_p()
626 && GET_CODE (cond1) == in conditions_mutex_p()
630 && rtx_equal_p (XEXP (cond1, 0), XEXP (cond2, 0)) in conditions_mutex_p()
631 && XEXP (cond1, 1) == XEXP (cond2, 1)) in conditions_mutex_p()
641 rtx cond1, cond2; in sched_insns_conditions_mutex_p() local
648 cond1 = sched_get_condition_with_rev (insn1, &rev1); in sched_insns_conditions_mutex_p()
650 if (cond1 && cond2 in sched_insns_conditions_mutex_p()
651 && conditions_mutex_p (cond1, cond2, rev1, rev2) in sched_insns_conditions_mutex_p()
654 && !modified_in_p (cond1, insn2) in sched_insns_conditions_mutex_p()
H A Dcombine.c9331 rtx cond0, cond1, true0, true1, false0, false1; in if_then_else_cond() local
9368 cond1 = if_then_else_cond (op1, &true1, &false1); in if_then_else_cond()
9370 if ((cond0 != 0 && cond1 != 0 && !rtx_equal_p (cond0, cond1)) in if_then_else_cond()
9383 cond1 = 0; in if_then_else_cond()
9388 if ((cond0 != 0 || cond1 != 0) in if_then_else_cond()
9389 && ! (cond0 != 0 && cond1 != 0 && !rtx_equal_p (cond0, cond1))) in if_then_else_cond()
9396 else if (cond1 == 0) in if_then_else_cond()
9412 return cond0 ? cond0 : cond1; in if_then_else_cond()
9428 cond1 = XEXP (XEXP (x, 1), 0); in if_then_else_cond()
9431 && COMPARISON_P (cond1) in if_then_else_cond()
[all …]
H A Dtree-ssa-reassoc.c3925 tree cond1 = gimple_assign_rhs1 (stmt1); in optimize_vec_cond_expr() local
3926 tree x1 = TREE_OPERAND (cond1, 0); in optimize_vec_cond_expr()
3927 tree y1 = TREE_OPERAND (cond1, 1); in optimize_vec_cond_expr()
3947 print_generic_expr (dump_file, cond1); in optimize_vec_cond_expr()
H A Dfold-const.c2820 inverse_conditions_p (const_tree cond1, const_tree cond2) in inverse_conditions_p() argument
2822 return (COMPARISON_CLASS_P (cond1) in inverse_conditions_p()
2825 (TREE_CODE (cond1), in inverse_conditions_p()
2826 HONOR_NANS (TREE_OPERAND (cond1, 0))) == TREE_CODE (cond2)) in inverse_conditions_p()
2827 && operand_equal_p (TREE_OPERAND (cond1, 0), in inverse_conditions_p()
2829 && operand_equal_p (TREE_OPERAND (cond1, 1), in inverse_conditions_p()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dread-md.cc144 md_reader::join_c_conditions (const char *cond1, const char *cond2) in join_c_conditions() argument
149 if (cond1 == 0 || cond1[0] == 0) in join_c_conditions()
153 return cond1; in join_c_conditions()
155 if (strcmp (cond1, cond2) == 0) in join_c_conditions()
156 return cond1; in join_c_conditions()
158 result = concat ("(", cond1, ") && (", cond2, ")", NULL); in join_c_conditions()
160 obstack_ptr_grow (&m_joined_conditions_obstack, cond1); in join_c_conditions()
H A Dcfgcleanup.cc252 rtx set1, set2, cond1, cond2; in thread_jump() local
293 cond1 = XEXP (SET_SRC (set1), 0); in thread_jump()
296 code1 = reversed_comparison_code (cond1, BB_END (e->src)); in thread_jump()
298 code1 = GET_CODE (cond1); in thread_jump()
311 if (!rtx_equal_p (XEXP (cond1, 0), XEXP (cond2, 0)) in thread_jump()
312 || !rtx_equal_p (XEXP (cond1, 1), XEXP (cond2, 1))) in thread_jump()
317 if (modified_in_p (cond1, BB_END (e->src))) in thread_jump()
1622 rtx set1, set2, cond1, cond2; in outgoing_edges_match() local
1665 cond1 = XEXP (SET_SRC (set1), 0); in outgoing_edges_match()
1667 code1 = GET_CODE (cond1); in outgoing_edges_match()
[all …]
H A Dread-md.h206 const char *join_c_conditions (const char *cond1, const char *cond2);
H A Dsched-deps.cc622 conditions_mutex_p (const_rtx cond1, const_rtx cond2, bool rev1, bool rev2) in conditions_mutex_p() argument
624 if (COMPARISON_P (cond1) in conditions_mutex_p()
626 && GET_CODE (cond1) == in conditions_mutex_p()
630 && rtx_equal_p (XEXP (cond1, 0), XEXP (cond2, 0)) in conditions_mutex_p()
631 && XEXP (cond1, 1) == XEXP (cond2, 1)) in conditions_mutex_p()
641 rtx cond1, cond2; in sched_insns_conditions_mutex_p() local
648 cond1 = sched_get_condition_with_rev (insn1, &rev1); in sched_insns_conditions_mutex_p()
650 if (cond1 && cond2 in sched_insns_conditions_mutex_p()
651 && conditions_mutex_p (cond1, cond2, rev1, rev2) in sched_insns_conditions_mutex_p()
654 && !modified_in_p (cond1, insn2) in sched_insns_conditions_mutex_p()
H A Dcombine.cc9204 rtx cond0, cond1, true0, true1, false0, false1; in if_then_else_cond() local
9241 cond1 = if_then_else_cond (op1, &true1, &false1); in if_then_else_cond()
9243 if ((cond0 != 0 && cond1 != 0 && !rtx_equal_p (cond0, cond1)) in if_then_else_cond()
9256 cond1 = 0; in if_then_else_cond()
9261 if ((cond0 != 0 || cond1 != 0) in if_then_else_cond()
9262 && ! (cond0 != 0 && cond1 != 0 && !rtx_equal_p (cond0, cond1))) in if_then_else_cond()
9269 else if (cond1 == 0) in if_then_else_cond()
9285 return cond0 ? cond0 : cond1; in if_then_else_cond()
9301 cond1 = XEXP (XEXP (x, 1), 0); in if_then_else_cond()
9304 && COMPARISON_P (cond1) in if_then_else_cond()
[all …]
H A Dtree-ssa-phiopt.cc2358 gcond *cond1 = as_a <gcond *> (last_stmt (cond_bb)); in spaceship_replacement() local
2359 enum tree_code cmp1 = gimple_cond_code (cond1); in spaceship_replacement()
2370 tree lhs1 = gimple_cond_lhs (cond1); in spaceship_replacement()
2371 tree rhs1 = gimple_cond_rhs (cond1); in spaceship_replacement()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/
H A Dtrans-io.c635 tree cond1, cond2, cond3, val, body; in set_parameter_value_inquire() local
644 cond1 = build2_loc (input_location, LT_EXPR, logical_type_node, in set_parameter_value_inquire()
653 logical_type_node, cond1, cond2); in set_parameter_value_inquire()
H A Dtrans-intrinsic.c2928 tree cond, cond1, cond3, cond4, size; in gfc_conv_intrinsic_bound() local
3046 cond1 = fold_build2_loc (input_location, GE_EXPR, logical_type_node, in gfc_conv_intrinsic_bound()
3051 logical_type_node, cond3, cond1); in gfc_conv_intrinsic_bound()
3091 cond1 = fold_build2_loc (input_location, TRUTH_OR_EXPR, in gfc_conv_intrinsic_bound()
3094 logical_type_node, cond, cond1); in gfc_conv_intrinsic_bound()
3132 cond1 = fold_build2_loc (input_location, NE_EXPR, in gfc_conv_intrinsic_bound()
3135 logical_type_node, cond, cond1); in gfc_conv_intrinsic_bound()
/netbsd-src/external/gpl3/gcc/dist/gcc/fortran/
H A Dtrans-io.cc635 tree cond1, cond2, cond3, val, body; in set_parameter_value_inquire() local
644 cond1 = build2_loc (input_location, LT_EXPR, logical_type_node, in set_parameter_value_inquire()
653 logical_type_node, cond1, cond2); in set_parameter_value_inquire()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/c6x/
H A Dc6x.c3762 conditions_opposite_p (rtx cond1, rtx cond2) in conditions_opposite_p() argument
3764 return (rtx_equal_p (XEXP (cond1, 0), XEXP (cond2, 0)) in conditions_opposite_p()
3765 && rtx_equal_p (XEXP (cond1, 1), XEXP (cond2, 1)) in conditions_opposite_p()
3766 && GET_CODE (cond1) == reverse_condition (GET_CODE (cond2))); in conditions_opposite_p()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/c6x/
H A Dc6x.cc3764 conditions_opposite_p (rtx cond1, rtx cond2) in conditions_opposite_p() argument
3766 return (rtx_equal_p (XEXP (cond1, 0), XEXP (cond2, 0)) in conditions_opposite_p()
3767 && rtx_equal_p (XEXP (cond1, 1), XEXP (cond2, 1)) in conditions_opposite_p()
3768 && GET_CODE (cond1) == reverse_condition (GET_CODE (cond2))); in conditions_opposite_p()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/frv/
H A Dfrv.c7012 frv_regstate_conflict_p (regstate_t cond1, regstate_t cond2) in frv_regstate_conflict_p() argument
7015 if ((cond1 & REGSTATE_IF_EITHER) == 0 in frv_regstate_conflict_p()
7021 if ((cond1 & REGSTATE_CC_MASK) != (cond2 & REGSTATE_CC_MASK)) in frv_regstate_conflict_p()
7026 if ((cond1 & cond2 & REGSTATE_IF_EITHER) != 0) in frv_regstate_conflict_p()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/frv/
H A Dfrv.cc7001 frv_regstate_conflict_p (regstate_t cond1, regstate_t cond2) in frv_regstate_conflict_p() argument
7004 if ((cond1 & REGSTATE_IF_EITHER) == 0 in frv_regstate_conflict_p()
7010 if ((cond1 & REGSTATE_CC_MASK) != (cond2 & REGSTATE_CC_MASK)) in frv_regstate_conflict_p()
7015 if ((cond1 & cond2 & REGSTATE_IF_EITHER) != 0) in frv_regstate_conflict_p()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/arm/
H A Darm.c15641 enum rtx_code cond1, cond2; in arm_select_dominance_cc_mode() local
15647 if ((arm_select_cc_mode (cond1 = GET_CODE (x), XEXP (x, 0), XEXP (x, 1)) in arm_select_dominance_cc_mode()
15657 cond1 = reverse_condition (cond1); in arm_select_dominance_cc_mode()
15661 if (cond1 != cond2 in arm_select_dominance_cc_mode()
15662 && !comparison_dominates_p (cond1, cond2) in arm_select_dominance_cc_mode()
15663 && (swapped = 1, !comparison_dominates_p (cond2, cond1))) in arm_select_dominance_cc_mode()
15667 std::swap (cond1, cond2); in arm_select_dominance_cc_mode()
15669 switch (cond1) in arm_select_dominance_cc_mode()
15752 gcc_assert (cond1 == cond2); in arm_select_dominance_cc_mode()
15756 gcc_assert (cond1 == cond2); in arm_select_dominance_cc_mode()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/config/arm/
H A Darm.cc15816 enum rtx_code cond1, cond2; in arm_select_dominance_cc_mode() local
15822 if ((arm_select_cc_mode (cond1 = GET_CODE (x), XEXP (x, 0), XEXP (x, 1)) in arm_select_dominance_cc_mode()
15832 cond1 = reverse_condition (cond1); in arm_select_dominance_cc_mode()
15836 if (cond1 != cond2 in arm_select_dominance_cc_mode()
15837 && !comparison_dominates_p (cond1, cond2) in arm_select_dominance_cc_mode()
15838 && (swapped = 1, !comparison_dominates_p (cond2, cond1))) in arm_select_dominance_cc_mode()
15842 std::swap (cond1, cond2); in arm_select_dominance_cc_mode()
15844 switch (cond1) in arm_select_dominance_cc_mode()
15927 gcc_assert (cond1 == cond2); in arm_select_dominance_cc_mode()
15931 gcc_assert (cond1 == cond2); in arm_select_dominance_cc_mode()
[all …]

12