@@ -2791,17 +2791,6 @@ arc_expand_compare_and_swap_qh (rtx bool_result, rtx result, rtx mem,
2791
2791
emit_move_insn (result , gen_lowpart (GET_MODE (result ), res ));
2792
2792
}
2793
2793
2794
- /* On some RISC architectures with 64-bit registers, the processor
2795
- also maintains 32-bit condition codes that make it possible to do
2796
- real 32-bit arithmetic, although the operations are performed on
2797
- the full registers. This hook needs to be define if
2798
- WORD_REGISTER_OPERATIONS is not defined to 1. */
2799
-
2800
- static unsigned int
2801
- arc64_min_arithmeric_precision (void )
2802
- {
2803
- return 32 ;
2804
- }
2805
2794
2806
2795
/* This hook may conditionally modify five variables: fixed_regs,
2807
2796
call_used_regs, global_regs, reg_names and reg_class_contents. */
@@ -3470,6 +3459,12 @@ arc64_rtx_costs (rtx x, machine_mode mode, rtx_code outer,
3470
3459
op0 = XEXP (x , 0 );
3471
3460
3472
3461
/* Zero extending from an SI operation is cheap. */
3462
+ if (MEM_P (op0 ))
3463
+ {
3464
+ /* All loads can zero extend to any size for free. */
3465
+ * cost += rtx_cost (op0 , VOIDmode , ZERO_EXTEND , 0 , speed );
3466
+ return true;
3467
+ }
3473
3468
if (mode == DImode
3474
3469
&& GET_MODE (op0 ) == SImode
3475
3470
&& outer == SET )
@@ -3479,12 +3474,6 @@ arc64_rtx_costs (rtx x, machine_mode mode, rtx_code outer,
3479
3474
* cost = op_cost ;
3480
3475
return true;
3481
3476
}
3482
- else if (MEM_P (op0 ))
3483
- {
3484
- /* All loads can zero extend to any size for free. */
3485
- * cost = rtx_cost (op0 , VOIDmode , ZERO_EXTEND , 0 , speed );
3486
- return true;
3487
- }
3488
3477
break ;
3489
3478
3490
3479
case SIGN_EXTEND :
@@ -4926,9 +4915,6 @@ arc64_expand_fvect_shr (rtx *operands)
4926
4915
#undef TARGET_MACHINE_DEPENDENT_REORG
4927
4916
#define TARGET_MACHINE_DEPENDENT_REORG arc64_reorg
4928
4917
4929
- #undef TARGET_MIN_ARITHMETIC_PRECISION
4930
- #define TARGET_MIN_ARITHMETIC_PRECISION arc64_min_arithmeric_precision
4931
-
4932
4918
#undef TARGET_CONDITIONAL_REGISTER_USAGE
4933
4919
#define TARGET_CONDITIONAL_REGISTER_USAGE arc64_conditional_register_usage
4934
4920
0 commit comments