mips.md (*extendqihi2): Convert the destination to SImode.
authorRichard Sandiford <richard@codesourcery.com>
Wed, 18 Jul 2007 09:35:15 +0000 (09:35 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 18 Jul 2007 09:35:15 +0000 (09:35 +0000)
gcc/
* config/mips/mips.md (*extendqihi2): Convert the destination
to SImode.

From-SVN: r126716

gcc/ChangeLog
gcc/config/mips/mips.md

index 8b6c0cd0a04f6106aaac92aba3d42122802afe86..17c729d19e573a264716bb0bf0367b2619f62c51 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-18  Richard Sandiford  <richard@codesourcery.com>
+
+       * config/mips/mips.md (*extendqihi2): Convert the destination
+       to SImode.
+
 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * config/pa/fptr.c: Update license header.
index 84347d7237c892fedf06e980d9db3d98474420bd..cad5920bc0f75ce3b4ca5a9cea89f0a43ccc6caf 100644 (file)
   [(set (match_dup 0) (ashift:SI (match_dup 1) (match_dup 2)))
    (set (match_dup 0) (ashiftrt:SI (match_dup 0) (match_dup 2)))]
 {
+  operands[0] = gen_lowpart (SImode, operands[0]);
   operands[1] = gen_lowpart (SImode, operands[1]);
   operands[2] = GEN_INT (GET_MODE_BITSIZE (SImode)
                         - GET_MODE_BITSIZE (QImode));