[hsa-branch] Handle BRIG_OPCODE_DEBUGTRAP in op_output_p

Martin Jambor mjambor@suse.cz
Wed Aug 3 14:36:00 GMT 2016


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 --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:
-- 
2.9.0



More information about the Gcc-patches mailing list