rs6000.md (iorxor, IORXOR): Delete code_attrs.
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 25 Nov 2014 17:41:10 +0000 (18:41 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 25 Nov 2014 17:41:10 +0000 (18:41 +0100)
* config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
(rest of file): Replace those with code resp. CODE.

From-SVN: r218052

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 8b0d92b..1772254 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
+       (rest of file): Replace those with code resp. CODE.
+
 2014-11-25  Tom de Vries  <tom@codesourcery.com>
 
        * tree-cfg.c (verify_sese): New function.
index fe73acf..c8c3a68 100644 (file)
 
 ; Logical operators.
 (define_code_iterator iorxor [ior xor])
-(define_code_attr iorxor [(ior "ior") (xor "xor")])
-(define_code_attr IORXOR [(ior "IOR") (xor "XOR")])
 
 ; Signed/unsigned variants of ops.
 (define_code_iterator any_extend [sign_extend zero_extend])
   [(set_attr "length" "8")])
 
 
-(define_expand "<iorxor><mode>3"
+(define_expand "<code><mode>3"
   [(set (match_operand:SDI 0 "gpc_reg_operand" "")
        (iorxor:SDI (match_operand:SDI 1 "gpc_reg_operand" "")
                    (match_operand:SDI 2 "reg_or_cint_operand" "")))]
 {
   if (<MODE>mode == DImode && !TARGET_POWERPC64)
     {
-      rs6000_split_logical (operands, <IORXOR>, false, false, false);
+      rs6000_split_logical (operands, <CODE>, false, false, false);
       DONE;
     }
 
       HOST_WIDE_INT lo = value & 0xffff;
       HOST_WIDE_INT hi = value - lo;
 
-      emit_insn (gen_<iorxor><mode>3 (tmp, operands[1], GEN_INT (hi)));
-      emit_insn (gen_<iorxor><mode>3 (operands[0], tmp, GEN_INT (lo)));
+      emit_insn (gen_<code><mode>3 (tmp, operands[1], GEN_INT (hi)));
+      emit_insn (gen_<code><mode>3 (operands[0], tmp, GEN_INT (lo)));
       DONE;
     }