According to the implemented pipeline model, this cost can be assumed to be
1 clock cycle.
gcc/ChangeLog:
* config/xtensa/xtensa.cc (xtensa_insn_cost):
Add a case statement for TYPE_FARITH.
From b819dd4fb38bedd95ef5d66847a0f80b9ca8ee86 Mon Sep 17 00:00:00 2001
From: Takayuki 'January June' Suwa <jjsuwa_sys3...@yahoo.co.jp>
Date: Wed, 24 Jul 2024 06:07:06 +0900
Subject: [PATCH 2/2] xtensa: Add missing speed cost for TYPE_FARITH in
TARGET_INSN_COST
According to the implemented pipeline model, this cost can be assumed to be
1 clock cycle.
gcc/ChangeLog:
* config/xtensa/xtensa.cc (xtensa_insn_cost):
Add a case statement for TYPE_FARITH.
---
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 d90e78fe9c4..a7cb3cc59fc 100644
--- a/gcc/config/xtensa/xtensa.cc
+++ b/gcc/config/xtensa/xtensa.cc
@@ -4722,6 +4722,7 @@ xtensa_insn_cost (rtx_insn *insn, bool speed)
case TYPE_ARITH:
case TYPE_MULTI:
case TYPE_NOP:
+ case TYPE_FARITH:
case TYPE_FSTORE:
return COSTS_N_INSNS (n);
--
2.39.2