This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[hsa-branch] Handle BRIG_OPCODE_DEBUGTRAP in op_output_p
- From: Martin Jambor <mjambor at suse dot cz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Jul 2016 18:46:28 +0200
- Subject: [hsa-branch] Handle BRIG_OPCODE_DEBUGTRAP in op_output_p
- Authentication-results: sourceware.org; auth=none
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