(long constant split): Use gen_lowpart instead of making a SUBREG
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 22 Oct 1992 18:19:56 +0000 (14:19 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 22 Oct 1992 18:19:56 +0000 (14:19 -0400)
directly.

From-SVN: r2560

gcc/config/a29k/a29k.md

index 316baa48226fd64af6cf3f3a7aeeadc854397dec..a44063b59a1b9ecca473c65ee58ea0dca593a2b4 100644 (file)
        (and:SI (match_dup 1)
                (const_int 65535)))
    (set (match_dup 0)
-       (ior:SI (zero_extend:SI (subreg:HI (match_dup 0) 0))
+       (ior:SI (zero_extend:SI (match_dup 2))
                (and:SI (match_dup 1)
                        (const_int -65536))))]
-  "")
+  " operands[2] = gen_lowpart (HImode, operands[0]); ")
 \f
 ;; Subroutines to load/store halfwords.  Operands 0 and 1 are the output and
 ;; input, respectively, except that the address is passed for a MEM instead