Lines Matching defs:old_val
5805 expand_val_compare_and_swap_1 (rtx mem, rtx old_val, rtx new_val,
5814 if (GET_MODE (old_val) != VOIDmode && GET_MODE (old_val) != mode)
5815 old_val = convert_modes (mode, GET_MODE (old_val), old_val, 1);
5816 if (!insn_data[icode].operand[2].predicate (old_val, mode))
5817 old_val = force_reg (mode, old_val);
5824 insn = GEN_FCN (icode) (target, mem, old_val, new_val);
5835 expand_val_compare_and_swap (rtx mem, rtx old_val, rtx new_val, rtx target)
5843 return expand_val_compare_and_swap_1 (mem, old_val, new_val, target, icode);
5851 expand_bool_compare_and_swap (rtx mem, rtx old_val, rtx new_val, rtx target)
5864 subtarget = expand_val_compare_and_swap_1 (mem, old_val, new_val,
5875 /* Ensure that if old_val == mem, that we're not comparing
5877 if (MEM_P (old_val))
5878 old_val = force_reg (mode, old_val);
5880 subtarget = expand_val_compare_and_swap_1 (mem, old_val, new_val,
5885 emit_cmp_insn (subtarget, old_val, EQ, const0_rtx, mode, true);