re PR target/41076 ([avr] pessimal code for logical OR of 8-bit fields)
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 2 Oct 2017 11:31:03 +0000 (11:31 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Mon, 2 Oct 2017 11:31:03 +0000 (11:31 +0000)
PR target/41076
* confg/avr/avr.md (*iorhi3.ashift8-ext.zerox): Add "r,r,0"
alternative.

From-SVN: r253343

gcc/ChangeLog
gcc/config/avr/avr.md

index a2e33e4b91027ebac93766c56fe82287c2c56b5a..8abda0a7bdb148777a9f88057c0953329857686b 100644 (file)
@@ -1,3 +1,9 @@
+2017-10-02  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/41076
+       * confg/avr/avr.md (*iorhi3.ashift8-ext.zerox): Add "r,r,0"
+       alternative.
+
 2017-10-02  Richard Biener  <rguenther@suse.de>
 
        * graphite-isl-ast-to-gimple.c (set_codegen_error): With
index fe5ca303ef77a728fe0691a768b3e1489c3579a5..436f036704ae4ddb7866809f5fdddfa034310997 100644 (file)
 
 
 (define_insn_and_split "*iorhi3.ashift8-ext.zerox"
-  [(set (match_operand:HI 0 "register_operand"                        "=r")
+  [(set (match_operand:HI 0 "register_operand"                        "=r,r")
         (ior:HI (ashift:HI (any_extend:HI
-                            (match_operand:QI 1 "register_operand"     "r"))
+                            (match_operand:QI 1 "register_operand"     "r,r"))
                            (const_int 8))
-                (zero_extend:HI (match_operand:QI 2 "register_operand" "r"))))]
+                (zero_extend:HI (match_operand:QI 2 "register_operand" "0,r"))))]
   "optimize"
   { gcc_unreachable(); }
   "&& reload_completed"