| /openbsd-src/lib/libc/thread/ |
| H A D | rthread_cond.c | 33 pthread_cond_t cond; in pthread_cond_init() local 35 cond = calloc(1, sizeof(*cond)); in pthread_cond_init() 36 if (cond == NULL) in pthread_cond_init() 40 cond->clock = CLOCK_REALTIME; in pthread_cond_init() 42 cond->clock = (*attr)->ca_clock; in pthread_cond_init() 43 *condp = cond; in pthread_cond_init() 52 pthread_cond_t cond; in pthread_cond_destroy() local 54 cond = *condp; in pthread_cond_destroy() 56 if (cond != NULL) { in pthread_cond_destroy() 57 if (cond->mutex != NULL) { in pthread_cond_destroy() [all …]
|
| H A D | rthread_sync.c | 246 pthread_cond_t cond; in pthread_cond_init() local 248 cond = calloc(1, sizeof(*cond)); in pthread_cond_init() 249 if (!cond) in pthread_cond_init() 251 cond->lock = _SPINLOCK_UNLOCKED; in pthread_cond_init() 252 TAILQ_INIT(&cond->waiters); in pthread_cond_init() 254 cond->clock = CLOCK_REALTIME; in pthread_cond_init() 256 cond->clock = (*attr)->ca_clock; in pthread_cond_init() 257 *condp = cond; in pthread_cond_init() 266 pthread_cond_t cond; in pthread_cond_destroy() local 269 cond = *condp; in pthread_cond_destroy() [all …]
|
| /openbsd-src/gnu/usr.bin/texinfo/makeinfo/tests/ |
| H A D | cond | 8 ../makeinfo -o cond.out $srcdir/cond.txi || exit 1 9 egrep 'This is (ifnothtml|ifinfo|ifnottex) text' cond.out >/dev/null \ 11 test `fgrep ' text.' cond.out | wc -l` -eq 3 || exit 3 14 ../makeinfo --no-split --html -o cond.out $srcdir/cond.txi || exit 1 15 egrep 'This is (html|ifhtml|ifnotinfo|ifnottex) text' cond.out >/dev/null \ 17 test `fgrep ' text.' cond.out | wc -l` -eq 4 || exit 3 20 ../makeinfo --no-ifhtml --no-ifinfo --no-iftex -o cond.out $srcdir/cond.txi || exit 1 21 egrep 'This is ifnot(html|info|tex) text' cond.out >/dev/null \ 23 test `fgrep ' text.' cond.out | wc -l` -eq 3 || exit 3 28 ../makeinfo --ifhtml --ifinfo --iftex -o cond.out $srcdir/cond.txi || exit 1 [all …]
|
| /openbsd-src/sys/arch/hppa/spmath/ |
| H A D | dfcmp.c | 24 dbl_fcmp(leftptr, rightptr, cond, status) in dbl_fcmp() argument 26 unsigned int cond; /* The predicate to be tested */ 46 && (Exception(cond) || Dbl_isone_signaling(leftp1))) 50 && (Exception(cond) || Dbl_isone_signaling(rightp1))) ) 53 Set_status_cbit(Unordered(cond)); 57 Set_status_cbit(Unordered(cond)); 69 Set_status_cbit(Unordered(cond)); 84 Set_status_cbit(Equal(cond)); 88 Set_status_cbit(Lessthan(cond)); 92 Set_status_cbit(Greaterthan(cond)); [all …]
|
| H A D | sfcmp.c | 24 sgl_fcmp(leftptr, rightptr, cond, status) in sgl_fcmp() argument 26 unsigned int cond; /* The predicate to be tested */ 46 && (Exception(cond) || Sgl_isone_signaling(left))) 50 && (Exception(cond) || Sgl_isone_signaling(right)) ) ) 53 Set_status_cbit(Unordered(cond)); 57 Set_status_cbit(Unordered(cond)); 69 Set_status_cbit(Unordered(cond)); 84 Set_status_cbit(Equal(cond)); 88 Set_status_cbit(Lessthan(cond)); 92 Set_status_cbit(Greaterthan(cond)); [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/ |
| H A D | SparcInstrAliases.td | 14 // mov<cond> <ccreg> rs2, rd 15 multiclass intcond_mov_alias<string cond, int condVal, string ccreg, 19 // mov<cond> (%icc|%xcc), rs2, rd 20 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg), 24 // mov<cond> (%icc|%xcc), simm11, rd 25 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg), 29 // fmovs<cond> (%icc|%xcc), $rs2, $rd 30 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovs", cond), ccreg), 34 // fmovd<cond> (%icc|%xcc), $rs2, $rd 35 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovd", cond), ccreg), [all …]
|
| /openbsd-src/usr.bin/dig/lib/isc/include/isc/ |
| H A D | assertions.h | 45 #define ISC_REQUIRE(cond) \ argument 46 ((void) ((cond) || \ 49 #cond), 0))) 50 #define ISC_ENSURE(cond) \ argument 51 ((void) ((cond) || \ 54 #cond), 0))) 55 #define ISC_INSIST(cond) \ argument 56 ((void) ((cond) || \ 59 #cond), 0))) 61 #define ISC_INVARIANT(cond) \ argument [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/threads-shared/t/ |
| H A D | wait.t | 48 # cond_wait and cond_timedwait extended tests adapted from cond.t 72 "simple", # cond var == lock var; implicit lock; e.g.: cond_wait($c) 73 "repeat", # cond var == lock var; explicit lock; e.g.: cond_wait($c, $c) 74 "twain" # cond var != lock var; explicit lock; e.g.: cond_wait($c, $l) 81 my $cond :shared; 91 $test_type =~ /twain/ ? lock($lock) : lock($cond); 95 no warnings 'threads'; # lock var != cond var, so disable warnings 96 cond_signal($cond); 98 cond_signal($cond); 112 $test_type =~ /twain/ ? lock($lock) : lock($cond); [all …]
|
| H A D | waithires.t | 74 "simple", # cond var == lock var; implicit lock; e.g.: cond_wait($c) 75 "repeat", # cond var == lock var; explicit lock; e.g.: cond_wait($c, $c) 76 "twain" # cond var != lock var; explicit lock; e.g.: cond_wait($c, $l) 110 my $cond :shared; 132 $test_type =~ /twain/ ? lock($lock) : lock($cond); 136 no warnings 'threads'; # lock var != cond var, so disable warnings 137 cond_signal($cond); 139 cond_signal($cond); 154 $test_type =~ /twain/ ? lock($lock) : lock($cond); 166 ($ok, $t) = do_cond_timedwait($cond, $to), last if /simple/; [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | tree-ssa-loop-unswitch.c | 117 tree stmt, def, cond, use; in tree_may_unswitch_on() local 136 cond = COND_EXPR_COND (stmt); in tree_may_unswitch_on() 140 if (integer_zerop (cond) || integer_nonzerop (cond)) in tree_may_unswitch_on() 143 return cond; in tree_may_unswitch_on() 151 simplify_using_entry_checks (struct loop *loop, tree cond) in simplify_using_entry_checks() argument 161 && operand_equal_p (COND_EXPR_COND (stmt), cond, 0)) in simplify_using_entry_checks() 167 return cond; in simplify_using_entry_checks() 171 return cond; in simplify_using_entry_checks() 185 tree cond = NULL_TREE, stmt; in tree_unswitch_single_loop() local 220 if ((cond = tree_may_unswitch_on (bbs[i], loop))) in tree_unswitch_single_loop() [all …]
|
| H A D | tree-ssa-phiopt.c | 380 tree new, cond; in conditional_replacement() local 402 cond = COND_EXPR_COND (last_stmt (cond_bb)); in conditional_replacement() 404 if (TREE_CODE (cond) != SSA_NAME in conditional_replacement() 405 && !lang_hooks.types_compatible_p (TREE_TYPE (cond), TREE_TYPE (result))) in conditional_replacement() 409 if (!COMPARISON_CLASS_P (cond)) in conditional_replacement() 412 tmp = create_tmp_var (TREE_TYPE (cond), NULL); in conditional_replacement() 415 old_result = cond; in conditional_replacement() 416 cond = new_var; in conditional_replacement() 422 if (!lang_hooks.types_compatible_p (TREE_TYPE (cond), TREE_TYPE (result))) in conditional_replacement() 423 cond = fold_convert (TREE_TYPE (result), cond); in conditional_replacement() [all …]
|
| H A D | tree-if-conv.c | 169 tree cond; in tree_if_conversion() local 174 cond = bb->aux; in tree_if_conversion() 182 cond = tree_if_convert_stmt (loop, t, cond, &itr); in tree_if_conversion() 192 if (cond != NULL_TREE) in tree_if_conversion() 193 add_to_predicate_list (bb_n, cond); in tree_if_conversion() 218 tree_if_convert_stmt (struct loop * loop, tree t, tree cond, in tree_if_convert_stmt() argument 225 print_generic_stmt (dump_file, cond, TDF_SLIM); in tree_if_convert_stmt() 245 tree_if_convert_cond_expr (loop, t, cond, bsi); in tree_if_convert_stmt() 246 cond = NULL_TREE; in tree_if_convert_stmt() 252 return cond; in tree_if_convert_stmt() [all …]
|
| H A D | c-omp.c | 207 c_finish_omp_for (location_t locus, tree decl, tree init, tree cond, in c_finish_omp_for() argument 245 if (cond == NULL_TREE) in c_finish_omp_for() 254 if (EXPR_HAS_LOCATION (cond)) in c_finish_omp_for() 255 elocus = EXPR_LOCATION (cond); in c_finish_omp_for() 257 if (TREE_CODE (cond) == LT_EXPR in c_finish_omp_for() 258 || TREE_CODE (cond) == LE_EXPR in c_finish_omp_for() 259 || TREE_CODE (cond) == GT_EXPR in c_finish_omp_for() 260 || TREE_CODE (cond) == GE_EXPR) in c_finish_omp_for() 262 tree op0 = TREE_OPERAND (cond, 0); in c_finish_omp_for() 263 tree op1 = TREE_OPERAND (cond, 1); in c_finish_omp_for() [all …]
|
| H A D | ifcvt.c | 345 rtx test_if, cond; in cond_exec_get_condition() local 351 cond = XEXP (test_if, 0); in cond_exec_get_condition() 358 enum rtx_code rev = reversed_comparison_code (cond, jump); in cond_exec_get_condition() 362 cond = gen_rtx_fmt_ee (rev, GET_MODE (cond), XEXP (cond, 0), in cond_exec_get_condition() 363 XEXP (cond, 1)); in cond_exec_get_condition() 366 return cond; in cond_exec_get_condition() 602 rtx jump, cond, cond_earliest; member 628 rtx cond = if_info->cond; in noce_emit_store_flag() local 632 cond_complex = (! general_operand (XEXP (cond, 0), VOIDmode) in noce_emit_store_flag() 633 || ! general_operand (XEXP (cond, 1), VOIDmode)); in noce_emit_store_flag() [all …]
|
| H A D | tree-ssa-forwprop.c | 178 forward_propagate_into_cond_1 (tree cond, tree *test_var_p) in forward_propagate_into_cond_1() argument 181 enum tree_code cond_code = TREE_CODE (cond); in forward_propagate_into_cond_1() 194 && TREE_CODE (TREE_OPERAND (cond, 0)) == SSA_NAME in forward_propagate_into_cond_1() 195 && CONSTANT_CLASS_P (TREE_OPERAND (cond, 1)) in forward_propagate_into_cond_1() 196 && INTEGRAL_TYPE_P (TREE_TYPE (TREE_OPERAND (cond, 1))))) in forward_propagate_into_cond_1() 201 test_var = cond; in forward_propagate_into_cond_1() 203 test_var = TREE_OPERAND (cond, 0); in forward_propagate_into_cond_1() 247 t = int_const_binop (new_code, TREE_OPERAND (cond, 1), op1, 0); in forward_propagate_into_cond_1() 257 else if (TREE_CODE (cond) == SSA_NAME in forward_propagate_into_cond_1() 258 || integer_zerop (TREE_OPERAND (cond, 1)) in forward_propagate_into_cond_1() [all …]
|
| H A D | loop-unswitch.c | 95 rtx seq, jump, cond; in compare_and_jump_seq() local 108 cond = XEXP (SET_SRC (pc_set (cinsn)), 0); in compare_and_jump_seq() 109 gcc_assert (GET_CODE (cond) == comp); in compare_and_jump_seq() 110 gcc_assert (rtx_equal_p (op0, XEXP (cond, 0))); in compare_and_jump_seq() 111 gcc_assert (rtx_equal_p (op1, XEXP (cond, 1))); in compare_and_jump_seq() 245 reversed_condition (rtx cond) in reversed_condition() argument 248 reversed = reversed_comparison_code (cond, NULL); in reversed_condition() 253 GET_MODE (cond), XEXP (cond, 0), in reversed_condition() 254 XEXP (cond, 1)); in reversed_condition() 268 rtx cond, rcond = NULL_RTX, conds, rconds, acond, cinsn; in unswitch_single_loop() local [all …]
|
| H A D | tree-ssa-threadedge.c | 302 tree cond = COND_EXPR_COND (TREE_OPERAND (stmt, 1)); in record_temporary_equivalences_from_stmts_at_dest() local 303 cond = fold (cond); in record_temporary_equivalences_from_stmts_at_dest() 304 if (cond == boolean_true_node) in record_temporary_equivalences_from_stmts_at_dest() 306 else if (cond == boolean_false_node) in record_temporary_equivalences_from_stmts_at_dest() 360 tree cond, cached_lhs; in simplify_control_stmt_condition() local 363 cond = COND_EXPR_COND (stmt); in simplify_control_stmt_condition() 365 cond = GOTO_DESTINATION (stmt); in simplify_control_stmt_condition() 367 cond = SWITCH_COND (stmt); in simplify_control_stmt_condition() 371 if (COMPARISON_CLASS_P (cond)) in simplify_control_stmt_condition() 376 op0 = TREE_OPERAND (cond, 0); in simplify_control_stmt_condition() [all …]
|
| H A D | predict.c | 792 rtx cond; in bb_estimate_probability_locally() local 796 cond = get_condition (last_insn, NULL, false, false); in bb_estimate_probability_locally() 797 if (! cond) in bb_estimate_probability_locally() 803 if (COMPARISON_P (cond) in bb_estimate_probability_locally() 804 && ((REG_P (XEXP (cond, 0)) && REG_POINTER (XEXP (cond, 0))) in bb_estimate_probability_locally() 805 || (REG_P (XEXP (cond, 1)) && REG_POINTER (XEXP (cond, 1))))) in bb_estimate_probability_locally() 807 if (GET_CODE (cond) == EQ) in bb_estimate_probability_locally() 809 else if (GET_CODE (cond) == NE) in bb_estimate_probability_locally() 818 switch (GET_CODE (cond)) in bb_estimate_probability_locally() 823 cond == const0_rtx ? NOT_TAKEN : TAKEN); in bb_estimate_probability_locally() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
| H A D | Mips64r6InstrInfo.td | 209 def : MipsPat<(select i64:$cond, i64:$t, i64:$f), 210 (OR64 (SELNEZ64 i64:$t, i64:$cond), 211 (SELEQZ64 i64:$f, i64:$cond))>, 213 def : MipsPat<(select (i32 (seteq i64:$cond, immz)), i64:$t, i64:$f), 214 (OR64 (SELEQZ64 i64:$t, i64:$cond), 215 (SELNEZ64 i64:$f, i64:$cond))>, 217 def : MipsPat<(select (i32 (setne i64:$cond, immz)), i64:$t, i64:$f), 218 (OR64 (SELNEZ64 i64:$t, i64:$cond), 219 (SELEQZ64 i64:$f, i64:$cond))>, 221 def : MipsPat<(select (i32 (seteq i64:$cond, immZExt16_64:$imm)), i64:$t, i64:$f), [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86InstrCMovSetCC.td | 20 : I<0x40, MRMSrcRegCC, (outs GR16:$dst), (ins GR16:$src1, GR16:$src2, ccode:$cond), 21 "cmov${cond}{w}\t{$src2, $dst|$dst, $src2}", 23 (X86cmov GR16:$src1, GR16:$src2, timm:$cond, EFLAGS))]>, 26 : I<0x40, MRMSrcRegCC, (outs GR32:$dst), (ins GR32:$src1, GR32:$src2, ccode:$cond), 27 "cmov${cond}{l}\t{$src2, $dst|$dst, $src2}", 29 (X86cmov GR32:$src1, GR32:$src2, timm:$cond, EFLAGS))]>, 32 :RI<0x40, MRMSrcRegCC, (outs GR64:$dst), (ins GR64:$src1, GR64:$src2, ccode:$cond), 33 "cmov${cond}{q}\t{$src2, $dst|$dst, $src2}", 35 (X86cmov GR64:$src1, GR64:$src2, timm:$cond, EFLAGS))]>, TB; 41 : I<0x40, MRMSrcMemCC, (outs GR16:$dst), (ins GR16:$src1, i16mem:$src2, ccode:$cond), [all …]
|
| /openbsd-src/gnu/usr.bin/perl/regen/ |
| H A D | HeaderParser.pm | 275 # parse trees: cond, true, false 487 return $dat->{line}, $dat->{cond}; 489 my ($cond); 491 ($line, $cond)= $self->_normalize_if_elif($line); 495 $self->{cache_normalize_if_elif}{$line}= { line => $line, cond => $cond }; 496 return ($line, $cond); 517 or confess "Bad cond: $line"; 522 my $cond= $self->tidy_cond($old_cond); 524 warn "cond [all...] |
| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | ifcvt.c | 320 rtx test_if, cond; local 326 cond = XEXP (test_if, 0); 333 enum rtx_code rev = reversed_comparison_code (cond, jump); 337 cond = gen_rtx_fmt_ee (rev, GET_MODE (cond), XEXP (cond, 0), 338 XEXP (cond, 1)); 341 return cond; 577 rtx jump, cond, cond_earliest; member 604 rtx cond = if_info->cond; local 608 cond_complex = (! general_operand (XEXP (cond, 0), VOIDmode) 609 || ! general_operand (XEXP (cond, 1), VOIDmode)); [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/binutils/ |
| H A D | sysroff.info | 61 (cond "ptr->ep" 62 (cond "ptr->mt != MTYPE_ABS_LM" 65 (cond "segmented_p" 151 (cond "ptr->type==ED_TYPE_ENTRY || ptr->type==ED_TYPE_DATA" 153 (cond "ptr->type==ED_TYPE_CONST" 167 (cond "ptr->saf" 169 (cond "ptr->cpf" 189 (cond "ptr->op == OP_EXT_REF" 192 (cond "ptr->op == OP_SEC_REF" 199 (cond "ptr->op == OP_RELOC_ADDR" [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/binutils/ |
| H A D | sysroff.info | 61 (cond "ptr->ep" 62 (cond "ptr->mt != MTYPE_ABS_LM" 65 (cond "segmented_p" 151 (cond "ptr->type==ED_TYPE_ENTRY || ptr->type==ED_TYPE_DATA" 153 (cond "ptr->type==ED_TYPE_CONST" 167 (cond "ptr->saf" 169 (cond "ptr->cpf" 189 (cond "ptr->op == OP_EXT_REF" 192 (cond "ptr->op == OP_SEC_REF" 199 (cond "ptr->op == OP_RELOC_ADDR" [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
| H A D | 990208-1.c | 9 static __inline__ void doit(void **pptr, int cond) in doit() argument 11 if (cond) { in doit() 17 static void f(int cond) in f() argument 19 doit (&ptr1, cond); in f() 22 static void g(int cond) in g() argument 24 doit (&ptr2, cond); in g()
|