]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target/119010 - add mode attribute to *vmovv16si_constm1_pternlog_false_dep
authorRichard Biener <rguenther@suse.de>
Thu, 27 Mar 2025 13:06:00 +0000 (14:06 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 31 Mar 2025 06:17:11 +0000 (08:17 +0200)
Like the other instances.  This avoids

;;       1--> b  0: i6540 {xmm2=const_vector;unspec[xmm2] 38;}    :nothing

PR target/119010
* config/i386/sse.md (*vmov<mode>_constm1_pternlog_false_dep):
Add mode attribute.

gcc/config/i386/sse.md

index ed5ac1abe80d6dae7b4c9985e54f285c8fa9506f..92dc93cb653244ff3ab9c0ce33bc0e6a31dc2136 100644 (file)
    "TARGET_AVX512VL || <MODE_SIZE> == 64"
    "vpternlogd\t{$0xFF, %0, %0, %0|%0, %0, %0, 0xFF}"
   [(set_attr "type" "sselog1")
-   (set_attr "prefix" "evex")])
+   (set_attr "prefix" "evex")
+   (set (attr "mode")
+        (if_then_else (match_test "TARGET_AVX512VL")
+                     (const_string "<sseinsnmode>")
+                     (const_string "XI")))])
 
 ;; If mem_addr points to a memory region with less than whole vector size bytes
 ;; of accessible memory and k is a mask that would prevent reading the inaccessible