https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120476
Bug ID: 120476
Summary: LoongArch: -mtune=la664 is pessimizing even on LA664
Product: gcc
Version: 15.1.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: ---
Per
https://github.com/loongson-community/discussions/issues/94#issuecomment-2919912764:
Spec int 2017 rate-1 with GCC 15.1.0 on 3C6000:
-O3 -march=la464: 4.49
-O3 -march=la664: 4.40
-O3: 4.49
benchmark la464 la664 only O3
perlbench 3.89 3.92 3.92
gcc 4.15 4.12 4.13
mcf 4.25 4.23 4.20
omnetpp 4.52 4.33 4.52
xalancbmk 3.47 3.66 3.46
x264 8.86 8.53 9.09
deepsjeng 3.26 3.23 3.25
leela 3.21 3.20 3.20
exchange2 12.1 10.4 12.2
xz 2.73 2.72 2.75
And openssl-3.5.0 "openssl speed sha512" is substantially slower with
-mtune=la664 on 3A6000.