From: Andrew Stubbs Date: Tue, 28 Apr 2020 19:48:51 +0000 (+0100) Subject: WIP amdgcn: use unsigned extend for lshiftrt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8db70e1f1cea312888470e1911c7b5e32333c61;p=gcc.git 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 gcc/ * config/gcn/gcn-valu.md (v3): Fix unsignedp. --- 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 + + * config/gcn/gcn-valu.md (v3): Fix unsignedp. + 2020-05-15 Richard Biener 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 = ( == ashift || == ashiftrt); + bool unsignedp = ( == lshiftrt); rtx insi1 = gen_reg_rtx (mode); rtx insi2 = gen_reg_rtx (mode); rtx outsi = gen_reg_rtx (mode);