public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/autopar_devel] WIP amdgcn: use unsigned extend for lshiftrt
@ 2020-08-22 21:17 Giuliano Belinassi
  0 siblings, 0 replies; only message in thread
From: Giuliano Belinassi @ 2020-08-22 21:17 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4f1cae9845f98c3f4405c3a164824093b3ac5096

commit 4f1cae9845f98c3f4405c3a164824093b3ac5096
Author: Andrew Stubbs <ams@codesourcery.com>
Date:   Tue Apr 28 20:48:51 2020 +0100

    WIP amdgcn: use unsigned extend for lshiftrt
    
    This fixes a wrong-code logic error in a previous patch.
    Detected by gcc.c-torture/execute/pr53645-2.c.
    
    2020-05-15  Andrew Stubbs  <ams@codesourcery.com>
    
            gcc/
            * config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.

Diff:
---
 gcc/ChangeLog              | 4 ++++
 gcc/config/gcn/gcn-valu.md | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b66cb8a477b..31fd653d55f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-15  Andrew Stubbs  <ams@codesourcery.com>
+
+	* config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
+
 2020-05-15  Richard Biener  <rguenther@suse.de>
 
 	PR tree-optimization/95133
diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md
index a43d6b6c6f3..d31fe5063b9 100644
--- a/gcc/config/gcn/gcn-valu.md
+++ b/gcc/config/gcn/gcn-valu.md
@@ -2113,7 +2113,7 @@
   ""
   {
     enum {ashift, lshiftrt, ashiftrt};
-    bool unsignedp = (<code> == ashift || <code> == ashiftrt);
+    bool unsignedp = (<code> == lshiftrt);
     rtx insi1 = gen_reg_rtx (<VnSI>mode);
     rtx insi2 = gen_reg_rtx (<VnSI>mode);
     rtx outsi = gen_reg_rtx (<VnSI>mode);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-22 21:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 21:17 [gcc/devel/autopar_devel] WIP amdgcn: use unsigned extend for lshiftrt Giuliano Belinassi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).