summaryrefslogtreecommitdiff
path: root/gcc/config/gcn
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2020-01-06 12:22:21 +0000
committerAndrew Stubbs <ams@gcc.gnu.org>2020-01-06 12:22:21 +0000
commit5960de787f57b15dfbd76aa9fa40552a34ea9d9b (patch)
tree5dd7a69b4dff1826adc8a94fb169f177b41bc35a /gcc/config/gcn
parenta4a1f96551882663b7eb75cf09c00ab9052dd08d (diff)
Fix amdgcn inline immediate range
2020-01-06 Andrew Stubbs <ams@codesourcery.com> gcc/ * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline immediate. From-SVN: r279898
Diffstat (limited to 'gcc/config/gcn')
-rw-r--r--gcc/config/gcn/gcn.c2
1 files changed, 1 insertions, 1 deletions
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)