From 5960de787f57b15dfbd76aa9fa40552a34ea9d9b Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Mon, 6 Jan 2020 12:22:21 +0000 Subject: [PATCH] Fix amdgcn inline immediate range 2020-01-06 Andrew Stubbs gcc/ * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline immediate. From-SVN: r279898 --- gcc/ChangeLog | 5 +++++ gcc/config/gcn/gcn.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d83fc8824d1..bd1c42e9683 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-01-06 Andrew Stubbs + + * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline + immediate. + 2020-01-06 Martin Liska PR tree-optimization/92860 diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c index 94f1e45bb3d..b361cffbb84 100644 --- a/gcc/config/gcn/gcn.c +++ b/gcc/config/gcn/gcn.c @@ -842,7 +842,7 @@ bool gcn_inline_constant_p (rtx x) { if (GET_CODE (x) == CONST_INT) - return INTVAL (x) >= -16 && INTVAL (x) < 64; + return INTVAL (x) >= -16 && INTVAL (x) <= 64; if (GET_CODE (x) == CONST_DOUBLE) return gcn_inline_fp_constant_p (x, false); if (GET_CODE (x) == CONST_VECTOR) -- 2.30.2