]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: Add 64-bit vector not
authorAndrew Stubbs <ams@codesourcery.com>
Mon, 3 Apr 2023 11:16:11 +0000 (12:16 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Mon, 3 Apr 2023 16:30:59 +0000 (17:30 +0100)
gcc/ChangeLog:

* config/gcn/gcn-valu.md (one_cmpl<mode>2<exec>): New.

gcc/ChangeLog.omp
gcc/config/gcn/gcn-valu.md

index d8aa0ab51bf55763dde38d7812015f9d8cade866..9b57f00db7ce9635f91ce521b36d4fe4da60e333 100644 (file)
@@ -1,3 +1,7 @@
+2023-04-03  Andrew Stubbs  <ams@codesourcery.com>
+
+       * config/gcn/gcn-valu.md (one_cmpl<mode>2<exec>): New.
+
 2023-04-03  Thomas Schwinge  <thomas@codesourcery.com>
 
        * doc/invoke.texi (-foffload-memory=pinned): Document.
index 44d107145dbdad1af2d87e4ca2c665060f9c86dc..c0b43fcfb6490ebfb14e498eef4ec94504be47dc 100644 (file)
     DONE;
   })
 
+(define_insn_and_split "one_cmpl<mode>2<exec>"
+  [(set (match_operand:V_DI 0 "register_operand"  "=   v")
+        (not:V_DI
+          (match_operand:V_DI 1 "gcn_alu_operand" "vSvDB")))]
+  ""
+  "#"
+  "reload_completed"
+  [(set (match_dup 3) (not:<VnSI> (match_dup 5)))
+   (set (match_dup 4) (not:<VnSI> (match_dup 6)))]
+  {
+    operands[3] = gcn_operand_part (<VnDI>mode, operands[0], 0);
+    operands[4] = gcn_operand_part (<VnDI>mode, operands[0], 1);
+    operands[5] = gcn_operand_part (<VnDI>mode, operands[1], 0);
+    operands[6] = gcn_operand_part (<VnDI>mode, operands[1], 1);
+  }
+  [(set_attr "type" "mult")])
+
 ;; }}}
 ;; {{{ FP binops - special cases