Lines Matching defs:old_val
5795 expand_val_compare_and_swap_1 (rtx mem, rtx old_val, rtx new_val,
5804 if (GET_MODE (old_val) != VOIDmode && GET_MODE (old_val) != mode)
5805 old_val = convert_modes (mode, GET_MODE (old_val), old_val, 1);
5806 if (!insn_data[icode].operand[2].predicate (old_val, mode))
5807 old_val = force_reg (mode, old_val);
5814 insn = GEN_FCN (icode) (target, mem, old_val, new_val);
5825 expand_val_compare_and_swap (rtx mem, rtx old_val, rtx new_val, rtx target)
5833 return expand_val_compare_and_swap_1 (mem, old_val, new_val, target, icode);
5841 expand_bool_compare_and_swap (rtx mem, rtx old_val, rtx new_val, rtx target)
5854 subtarget = expand_val_compare_and_swap_1 (mem, old_val, new_val,
5865 /* Ensure that if old_val == mem, that we're not comparing
5867 if (MEM_P (old_val))
5868 old_val = force_reg (mode, old_val);
5870 subtarget = expand_val_compare_and_swap_1 (mem, old_val, new_val,
5875 emit_cmp_insn (subtarget, old_val, EQ, const0_rtx, mode, true);