From b8db70e1f1cea312888470e1911c7b5e32333c61 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Tue, 28 Apr 2020 20:48:51 +0100 Subject: [PATCH] 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. --- 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 + + * 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); -- 2.30.2