diff mbox

[hsa-branch] Handle BRIG_OPCODE_DEBUGTRAP in op_output_p

Message ID E1bUxHe-0005EP-6v@eggs.gnu.org
State New
Headers show

Commit Message

Martin Jambor July 20, 2016, 4:46 p.m. UTC
Hi,

although BRIG_OPCODE_DEBUGTRAP isn't currently generated by gcc trunk,
some experimental patches that I have do and it is one of the rare cases
where registers in zeroth operand are input, so  it should be recognized
as such by hsa_insn_basic::op_output_p.

Martin

2016-07-04  Martin Jambor  <mjambor@suse.cz>

	* hsa.c (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
	to the list of instructions with no output registers.
---
 gcc/hsa.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/gcc/hsa.c b/gcc/hsa.c
index 9f02bba..01520e8 100644
--- a/gcc/hsa.c
+++ b/gcc/hsa.c
@@ -170,6 +170,7 @@  hsa_insn_basic::op_output_p (unsigned opnum)
     case BRIG_OPCODE_SBR:
     case BRIG_OPCODE_ST:
     case BRIG_OPCODE_SIGNALNORET:
+    case BRIG_OPCODE_DEBUGTRAP:
       /* FIXME: There are probably missing cases here, double check.  */
       return false;
     case BRIG_OPCODE_EXPAND: