aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.vnet.ibm.com>2018-02-06 20:15:40 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2018-02-06 20:15:40 +0000
commit478a853e03cc6561f2698a17d98b332d6296c40e (patch)
treed7ebc9da51185cb9ee851e888eb797db2e49b03f /gcc
parenta836f1425c2a2c9aee6bd46d87e0ea5725951c53 (diff)
downloadgcc-478a853e03cc6561f2698a17d98b332d6296c40e.zip
gcc-478a853e03cc6561f2698a17d98b332d6296c40e.tar.gz
gcc-478a853e03cc6561f2698a17d98b332d6296c40e.tar.bz2
re PR target/84154 (PowerPC GCC 7 and 8 have regression in converting fp to short/char and returning it)
2018-02-06 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/84154 * config/rs6000/rs6000.md (su code attribute): Use "u" for unsigned_fix, not "s". From-SVN: r257429
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.md2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f13481b..2f203b6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
+
+ PR target/84154
+ * config/rs6000/rs6000.md (su code attribute): Use "u" for
+ unsigned_fix, not "s".
+
2018-02-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.ac (gcc_fn_eh_frame_ro): New function.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index b668dc2..f085f0d 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -550,7 +550,7 @@
(define_code_attr su [(sign_extend "s")
(zero_extend "u")
(fix "s")
- (unsigned_fix "s")
+ (unsigned_fix "u")
(float "s")
(unsigned_float "u")])