From 47e0b45f626798ceb75fac2c0ffd1d3e0b8baead Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 7 Aug 2016 12:52:12 +0930 Subject: [PATCH] [RS6000] Fix wrong mode reg Fix thinko in rev 239011 (git d1d05ab7). * config/rs6000/rs6000.md (fix_truncsi2): Fix mode of reg. From-SVN: r239217 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/rs6000.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2193fda0f81..7b553516ab2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-08-07 Alan Modra + + * config/rs6000/rs6000.md (fix_truncsi2): Fix mode of reg. + 2016-08-07 Kugan Vivekanandarajah * data-streamer-in.c (streamer_read_wide_int): New. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 45ad66104fa..bc01dc7d2f0 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -5357,7 +5357,7 @@ { if (!) { - rtx src = force_reg (SFmode, operands[1]); + rtx src = force_reg (mode, operands[1]); if (TARGET_STFIWX) emit_insn (gen_fix_truncsi2_stfiwx (operands[0], src)); -- 2.30.2