[RS6000] Fix wrong mode reg
authorAlan Modra <amodra@gmail.com>
Sun, 7 Aug 2016 03:22:12 +0000 (12:52 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Sun, 7 Aug 2016 03:22:12 +0000 (12:52 +0930)
Fix thinko in rev 239011 (git d1d05ab7).

* config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.

From-SVN: r239217

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 2193fda..7b55351 100644 (file)
@@ -1,3 +1,7 @@
+2016-08-07  Alan Modra  <amodra@gmail.com>
+
+       * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
+
 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
 
        * data-streamer-in.c (streamer_read_wide_int): New.
index 45ad661..bc01dc7 100644 (file)
 {
   if (!<E500_CONVERT>)
     {
-      rtx src = force_reg (SFmode, operands[1]);
+      rtx src = force_reg (<MODE>mode, operands[1]);
 
       if (TARGET_STFIWX)
        emit_insn (gen_fix_trunc<mode>si2_stfiwx (operands[0], src));