]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target/119010 - missing reservations for Zen4/5 and SSE compares
authorRichard Biener <rguenther@suse.de>
Thu, 27 Mar 2025 10:29:21 +0000 (11:29 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 31 Mar 2025 06:17:11 +0000 (08:17 +0200)
There's the znver4_sse_test reservation which matches the memory-less
SSE compares but currently requires prefix_extra == 1.  The old
znver automata in this case sometimes uses znver1-double instead of
znver1-direct, but it's quite a maze.  The following simply drops
the prefix_extra requirement, but I have no idea what I'm doing here.
There doesn't seem to be any documentation on the scheduler relevant
attributes used, or at least I cannot find that.

PR target/119010
* config/i386/zn4zn5.md (znver4_sse_test): Drop test of
prefix_extra attribute.

gcc/config/i386/zn4zn5.md

index fb856e9dc988ab66588aa2bd4b2f5e3a0618cbbe..40e51456a4611ef81f2a570d355b549580109d92 100644 (file)
 
 (define_insn_reservation "znver4_sse_test" 1
                         (and (eq_attr "cpu" "znver4,znver5")
-                             (and (eq_attr "prefix_extra" "1")
-                                  (and (eq_attr "type" "ssecomi")
-                                       (eq_attr "memory" "none"))))
+                                 (and (eq_attr "type" "ssecomi")
+                                       (eq_attr "memory" "none")))
                         "znver4-direct,znver4-fpu1|znver4-fpu2")
 
 (define_insn_reservation "znver4_sse_test_load" 6