stormy16.md (zero_extendqihi2): New.
authorAndrew Haley <aph@cambridge.redhat.com>
Mon, 11 Feb 2002 17:04:31 +0000 (17:04 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Mon, 11 Feb 2002 17:04:31 +0000 (17:04 +0000)
2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>

        * config/stormy16/stormy16.md (zero_extendqihi2): New.

From-SVN: r49679

gcc/ChangeLog
gcc/config/stormy16/stormy16.md

index 46d689930b9961fed36b8e2dbd4b5964e63c3049..3ca0f0f6a3abedfe686821fd77bb2746beeab481 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
+
+       * config/stormy16/stormy16.md (zero_extendqihi2): New.
+
 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
 
        * regrename.c (regrename_optimize): Don't accept a
index 3dcaa6859fd7246652db111e076181a9e48246b7..9283aafc6614d3ba02723fa368279c61583d0cf1 100644 (file)
   ""
   "cbw %0")
 
+(define_insn "zero_extendqihi2"
+  [(set (match_operand:HI                 0 "register_operand"            "=e,r")
+       (zero_extend:HI (match_operand:QI 1 "nonimmediate_operand" "m,0")))]
+  ""
+  "@
+   mov.b %0, %1
+   shl %0,#8\n\tshr %0,#8"
+  [(set_attr "psw_operand" "nop,0")
+   (set_attr_alternative "length" 
+            [(const_int 2)
+             (const_int 4)])])
+
 \f
 ;; ::::::::::::::::::::
 ;; ::