diff mbox

rs6000: Remove iorxor/IORXOR code attrs

Message ID a9aee1e3748d46c4cafc96d8e32c52c30a7b7c0b.1416573705.git.segher@kernel.crashing.org
State New
Headers show

Commit Message

Segher Boessenkool Nov. 25, 2014, 3:11 a.m. UTC
As Richard pointed out, those do nothing more than code/CODE.
Tested etc.; okay for trunk?


Segher


2014-11-21  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/
	* config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
	(rest of file): Replace those with code resp. CODE.

---
 gcc/config/rs6000/rs6000.md | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Comments

David Edelsohn Nov. 25, 2014, 1:51 p.m. UTC | #1
On Mon, Nov 24, 2014 at 10:11 PM, Segher Boessenkool
<segher@kernel.crashing.org> wrote:
> As Richard pointed out, those do nothing more than code/CODE.
> Tested etc.; okay for trunk?
>
>
> Segher
>
>
> 2014-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
>
> gcc/
>         * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
>         (rest of file): Replace those with code resp. CODE.

Okay.

thanks, David
diff mbox

Patch

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index fe73acf..c8c3a68 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -460,8 +460,6 @@  (define_code_attr return_str [(return "") (simple_return "simple_")])
 
 ; 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])
@@ -2876,7 +2874,7 @@  (define_insn_and_split "*andsi3_internal6"
   [(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" "")))]
@@ -2884,7 +2882,7 @@  (define_expand "<iorxor><mode>3"
 {
   if (<MODE>mode == DImode && !TARGET_POWERPC64)
     {
-      rs6000_split_logical (operands, <IORXOR>, false, false, false);
+      rs6000_split_logical (operands, <CODE>, false, false, false);
       DONE;
     }
 
@@ -2898,8 +2896,8 @@  (define_expand "<iorxor><mode>3"
       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;
     }