]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Replace orc with iorc [PR115659]
authorKewen Lin <linkw@linux.ibm.com>
Mon, 8 Jul 2024 05:15:00 +0000 (00:15 -0500)
committerKewen Lin <linkw@gcc.gnu.org>
Mon, 8 Jul 2024 05:15:00 +0000 (00:15 -0500)
Since iorc optab is introduced, this patch is to update the
expander names and all the related uses like bif expanders,
gen functions accordingly.

PR tree-optimization/115659

gcc/ChangeLog:

* config/rs6000/rs6000-builtins.def: Update some bif expanders by
replacing orc<mode>3 with iorc<mode>3.
* config/rs6000/rs6000-string.cc (expand_cmp_vec_sequence): Update gen
function by replacing orc<mode>3 with iorc<mode>3.
* config/rs6000/rs6000.md (orc<mode>3): Rename to ...
(iorc<mode>3): ... this.

gcc/config/rs6000/rs6000-builtins.def
gcc/config/rs6000/rs6000-string.cc
gcc/config/rs6000/rs6000.md

index 3bc7fed6956868d440feb7e403ee006e607707d0..736890fe6cb8e2e0473e00eed3b815c4c33575c8 100644 (file)
     NEG_V2DI negv2di2 {}
 
   const vsc __builtin_altivec_orc_v16qi (vsc, vsc);
-    ORC_V16QI orcv16qi3 {}
+    ORC_V16QI iorcv16qi3 {}
 
   const vuc __builtin_altivec_orc_v16qi_uns (vuc, vuc);
-    ORC_V16QI_UNS orcv16qi3 {}
+    ORC_V16QI_UNS iorcv16qi3 {}
 
   const vsq __builtin_altivec_orc_v1ti (vsq, vsq);
-    ORC_V1TI orcv1ti3 {}
+    ORC_V1TI iorcv1ti3 {}
 
   const vuq __builtin_altivec_orc_v1ti_uns (vuq, vuq);
-    ORC_V1TI_UNS orcv1ti3 {}
+    ORC_V1TI_UNS iorcv1ti3 {}
 
   const vd __builtin_altivec_orc_v2df (vd, vd);
-    ORC_V2DF orcv2df3 {}
+    ORC_V2DF iorcv2df3 {}
 
   const vsll __builtin_altivec_orc_v2di (vsll, vsll);
-    ORC_V2DI orcv2di3 {}
+    ORC_V2DI iorcv2di3 {}
 
   const vull __builtin_altivec_orc_v2di_uns (vull, vull);
-    ORC_V2DI_UNS orcv2di3 {}
+    ORC_V2DI_UNS iorcv2di3 {}
 
   const vf __builtin_altivec_orc_v4sf (vf, vf);
-    ORC_V4SF orcv4sf3 {}
+    ORC_V4SF iorcv4sf3 {}
 
   const vsi __builtin_altivec_orc_v4si (vsi, vsi);
-    ORC_V4SI orcv4si3 {}
+    ORC_V4SI iorcv4si3 {}
 
   const vui __builtin_altivec_orc_v4si_uns (vui, vui);
-    ORC_V4SI_UNS orcv4si3 {}
+    ORC_V4SI_UNS iorcv4si3 {}
 
   const vss __builtin_altivec_orc_v8hi (vss, vss);
-    ORC_V8HI orcv8hi3 {}
+    ORC_V8HI iorcv8hi3 {}
 
   const vus __builtin_altivec_orc_v8hi_uns (vus, vus);
-    ORC_V8HI_UNS orcv8hi3 {}
+    ORC_V8HI_UNS iorcv8hi3 {}
 
   const vsc __builtin_altivec_vclzb (vsc);
     VCLZB clzv16qi2 {}
index 917f5572a6d344bd7a8ce8aa15e5e9ec2ec1709b..c4c62e8e2f94e96fdd096fa8fe955f64a4d1fb3e 100644 (file)
@@ -743,7 +743,7 @@ expand_cmp_vec_sequence (unsigned HOST_WIDE_INT bytes_to_compare,
              rtx cmp_combined = gen_reg_rtx (load_mode);
              emit_insn (gen_altivec_eqv16qi (cmp_res, s1data, s2data));
              emit_insn (gen_altivec_eqv16qi (cmp_zero, s1data, zero_reg));
-             emit_insn (gen_orcv16qi3 (vec_result, cmp_zero, cmp_res));
+             emit_insn (gen_iorcv16qi3 (vec_result, cmp_zero, cmp_res));
              emit_insn (gen_altivec_vcmpequb_p (cmp_combined, vec_result, zero_reg));
            }
        }
index a5d20594789509f4b96f79c82085237f3023fcc7..276a5c9cf2d36067733333bb1e2ba4eed0f017d2 100644 (file)
 
 ;; The canonical form is to have the negated element first, so we need to
 ;; reverse arguments.
-(define_expand "orc<mode>3"
+(define_expand "iorc<mode>3"
   [(set (match_operand:BOOL_128 0 "vlogical_operand")
        (ior:BOOL_128
         (not:BOOL_128 (match_operand:BOOL_128 2 "vlogical_operand"))