It takes one machine instruction for both condtional branch and move. gcc/ChangeLog:
* config/xtensa/xtensa.cc (xtensa_rtx_costs): Add new case for IF_THEN_ELSE. --- gcc/config/xtensa/xtensa.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index a851a7ae6b3..6ac879c38fb 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -4273,6 +4273,7 @@ xtensa_rtx_costs (rtx x, machine_mode mode, int outer_code, case ZERO_EXTRACT: case ZERO_EXTEND: + case IF_THEN_ELSE: *total = COSTS_N_INSNS (1); return true; -- 2.20.1