Commit 5960de78 by Andrew Stubbs Committed by Andrew Stubbs

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
parent a4a1f965
2020-01-06 Andrew Stubbs <ams@codesourcery.com>
* config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
immediate.
2020-01-06 Martin Liska <mliska@suse.cz> 2020-01-06 Martin Liska <mliska@suse.cz>
PR tree-optimization/92860 PR tree-optimization/92860
......
...@@ -842,7 +842,7 @@ bool ...@@ -842,7 +842,7 @@ bool
gcn_inline_constant_p (rtx x) gcn_inline_constant_p (rtx x)
{ {
if (GET_CODE (x) == CONST_INT) 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) if (GET_CODE (x) == CONST_DOUBLE)
return gcn_inline_fp_constant_p (x, false); return gcn_inline_fp_constant_p (x, false);
if (GET_CODE (x) == CONST_VECTOR) if (GET_CODE (x) == CONST_VECTOR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment