public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112936] New: LoongArch: Wrong instruction costs
@ 2023-12-09  9:12 xry111 at gcc dot gnu.org
  2023-12-09  9:17 ` [Bug target/112936] " xry111 at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-12-09  9:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112936

            Bug ID: 112936
           Summary: LoongArch: Wrong instruction costs
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xry111 at gcc dot gnu.org
  Target Milestone: ---

Separated from PR112935 comment 3.

The current loongarch_rtx_cost_data constructor (for default cost model, used
by LA464 and LA664 for now) seems completely wrong.  Per my micro-benchmark the
values in reality should be:

loongarch_rtx_cost_data::loongarch_rtx_cost_data ()
  : fp_add (COSTS_N_INSNS (5)),
    fp_mult_sf (COSTS_N_INSNS (5)),
    fp_mult_df (COSTS_N_INSNS (5)),
    fp_div_sf (COSTS_N_INSNS (8)),
    fp_div_df (COSTS_N_INSNS (8)),
    int_mult_si (COSTS_N_INSNS (4)),
    int_mult_di (COSTS_N_INSNS (4)),
    int_div_si (COSTS_N_INSNS (5)),
    int_div_di (COSTS_N_INSNS (5)),
    branch_cost (6),
    memory_latency (4) {}

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-17 11:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-09  9:12 [Bug target/112936] New: LoongArch: Wrong instruction costs xry111 at gcc dot gnu.org
2023-12-09  9:17 ` [Bug target/112936] " xry111 at gcc dot gnu.org
2023-12-10  5:26 ` xry111 at gcc dot gnu.org
2023-12-10  5:27 ` xry111 at gcc dot gnu.org
2023-12-17 11:24 ` cvs-commit at gcc dot gnu.org
2023-12-17 11:25 ` xry111 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).